mirror of
https://github.com/fluent/fluentd-ui.git
synced 2026-05-05 19:06:12 +02:00
Add Note class to memo about backup files.
This commit is contained in:
parent
bb7786499b
commit
7a95af83ce
17
app/models/fluentd/setting_archive/note.rb
Normal file
17
app/models/fluentd/setting_archive/note.rb
Normal file
@ -0,0 +1,17 @@
|
||||
class Fluentd
|
||||
module SettingArchive
|
||||
class Note
|
||||
include Archivable
|
||||
|
||||
FILE_EXTENSION = ".note".freeze
|
||||
|
||||
def self.find_by_file_id(backup_dir, file_id)
|
||||
new(file_path_of(backup_dir, file_id))
|
||||
end
|
||||
|
||||
def initialize(file_path)
|
||||
@file_path = file_path
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
x
Reference in New Issue
Block a user