Sha256: f9b868f7fc38cada5572320509a72717562df461fccfd89cb5d8117c44ea8ef2
Contents?: true
Size: 539 Bytes
Versions: 25
Compression:
Stored size: 539 Bytes
Contents
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 self.create(file_path) FileUtils.touch(file_path) new(file_path) end def initialize(file_path) @file_path = file_path end def update!(content) File.open(@file_path, "w") do |f| f.write content end end end end end
Version data entries
25 entries across 25 versions & 1 rubygems