Method: Fluent::Plugin::FileOutput#compression_suffix
- Defined in:
- lib/fluent/plugin/out_file.rb
#compression_suffix(compress) ⇒ Object
272 273 274 275 276 277 278 279 |
# File 'lib/fluent/plugin/out_file.rb', line 272 def compression_suffix(compress) case compress when :gzip then '.gz' when nil then '' else raise ArgumentError, "unknown compression type #{compress}" end end |