Class: Fluent::S3Output::TextCompressor

Inherits:
Compressor
  • Object
show all
Defined in:
lib/fluent/plugin/out_s3.rb

Direct Known Subclasses

JsonCompressor

Instance Method Summary collapse

Methods inherited from Compressor

#configure

Instance Method Details

#compress(chunk, tmp) ⇒ Object



203
204
205
206
# File 'lib/fluent/plugin/out_s3.rb', line 203

def compress(chunk, tmp)
  chunk.write_to(tmp)
  tmp.close
end

#content_typeObject



199
200
201
# File 'lib/fluent/plugin/out_s3.rb', line 199

def content_type
  'text/plain'.freeze
end

#extObject



195
196
197
# File 'lib/fluent/plugin/out_s3.rb', line 195

def ext
  'txt'.freeze
end