class Fluent::Plugin::S3Output::GzipCompressor

Public Instance Methods

compress(chunk, tmp) click to toggle source
# File lib/fluent/plugin/out_s3.rb, line 596
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 592
def content_type
  'application/x-gzip'.freeze
end
ext() click to toggle source
# File lib/fluent/plugin/out_s3.rb, line 588
def ext
  'gz'.freeze
end