Class: Scry::LogWriter

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::Worker
Defined in:
lib/scry/sidekiq/workers/log_writer.rb

Instance Method Summary collapse

Instance Method Details

#perform(log, data) ⇒ Object

Writes data to the given log file



16
17
18
19
20
# File 'lib/scry/sidekiq/workers/log_writer.rb', line 16

def perform(log, data)
  File.open(log, "a") do |file|
    file.puts data
  end
end