Class: LogStash::Outputs::OSS::FileManager::FileGeneratorInitializer

Inherits:
Object
  • Object
show all
Defined in:
lib/logstash/outputs/oss/file_manager.rb

Instance Method Summary collapse

Constructor Details

#initialize(encoding, temporary_directory) ⇒ FileGeneratorInitializer

Returns a new instance of FileGeneratorInitializer.



75
76
77
78
# File 'lib/logstash/outputs/oss/file_manager.rb', line 75

def initialize(encoding, temporary_directory)
  @encoding = encoding
  @temporary_directory = temporary_directory
end

Instance Method Details

#apply(prefix) ⇒ Object



80
81
82
# File 'lib/logstash/outputs/oss/file_manager.rb', line 80

def apply(prefix)
  FileGenerator.new(prefix, @encoding, @temporary_directory)
end