Method: Fluent::SendmailInput#shutdown
- Defined in:
- lib/fluent/plugin/in_sendmail.rb
#shutdown ⇒ Object
43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/fluent/plugin/in_sendmail.rb', line 43 def shutdown super if @path_cache_file != nil data = {} @delivers.each{|k, v| data[k] = v.to_json } File.open(@path_cache_file, "w+") {|cache_file| cache_file.puts(data.to_json) } end end |