class Fluent::ImageFileOutput

Public Class Methods

new() click to toggle source
Calls superclass method
# File lib/fluent/plugin/out_imagefile.rb, line 7
def initialize
  super
end

Public Instance Methods

configure(conf) click to toggle source
Calls superclass method
# File lib/fluent/plugin/out_imagefile.rb, line 17
def configure(conf)
  super

end
emit(tag, es, chain) click to toggle source
# File lib/fluent/plugin/out_imagefile.rb, line 32
def emit(tag, es, chain)
  es.each {|time,record|
    file_fullpath = File.join(@save_dir, "#{record[@filename_key]}.#{@extension}")
    
    media = record[@image_key]
    media = Base64.decode64(media) if @base64encoded
    
    File.open(file_fullpath, 'wb') {|file| file.write(media)}
  }

  chain.next
end
shutdown() click to toggle source
Calls superclass method
# File lib/fluent/plugin/out_imagefile.rb, line 27
def shutdown
  super

end
start() click to toggle source
Calls superclass method
# File lib/fluent/plugin/out_imagefile.rb, line 22
def start
  super

end