class Fluent::Plugin::S3Output::GzipCompressor
Public Instance Methods
compress(chunk, tmp)
click to toggle source
# File lib/fluent/plugin/out_s3.rb, line 624 def compress(chunk, tmp) w = Zlib::GzipWriter.new(tmp) chunk.write_to(w) w.finish ensure w.finish rescue nil end
content_type()
click to toggle source
# File lib/fluent/plugin/out_s3.rb, line 620 def content_type 'application/x-gzip'.freeze end
ext()
click to toggle source
# File lib/fluent/plugin/out_s3.rb, line 616 def ext 'gz'.freeze end