class Fluent::Plugin::AzureStorageOutput::GzipCompressor

Public Instance Methods

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