class Fluent::Plugin::S3Output::LZOCompressor
Public Instance Methods
Source
# File lib/fluent/plugin/s3_compressor_lzo.rb, line 21 def compress(chunk, tmp) w = Tempfile.new("chunk-tmp") w.binmode chunk.write_to(w) w.close # We don't check the return code because we can't recover lzop failure. system "lzop #{@command_parameter} -o #{tmp.path} #{w.path}" ensure w.close rescue nil w.unlink rescue nil end
Source
# File lib/fluent/plugin/s3_compressor_lzo.rb, line 8 def configure(conf) super check_command('lzop', 'LZO') end
Calls superclass method
Fluent::Plugin::S3Output::Compressor#configure
Source
# File lib/fluent/plugin/s3_compressor_lzo.rb, line 17 def content_type 'application/x-lzop'.freeze end