class Fluent::Plugin::AzureStorageGen2Output::GzipCompressor
Public Instance Methods
compress(chunk, tmp)
click to toggle source
# File lib/fluent/plugin/out_azurestorage_gen2.rb, line 706 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_gen2.rb, line 702 def content_type 'application/x-gzip'.freeze end
ext()
click to toggle source
# File lib/fluent/plugin/out_azurestorage_gen2.rb, line 698 def ext 'gz'.freeze end