Method: Mushy::WriteFile#process
- Defined in:
- lib/mushy/fluxs/write_file.rb
#process(event, config) ⇒ Object
89 90 91 92 93 94 95 96 97 |
# File 'lib/mushy/fluxs/write_file.rb', line 89 def process event, config file = self.class.get_file_from config File.open(file, 'w') { |f| f.write config[:data] } { file: Mushy::Ls.new.process({}, { path: file })[0] } end |