Class: Workers::ChangeFinish

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

Instance Method Summary collapse

Instance Method Details

#perform(sync_log_id, action_taken) ⇒ Object


5
6
7
8
# File 'lib/workers/change_finish.rb', line 5

def perform(sync_log_id, action_taken)
  response = trogdir.finish(sync_log_id: sync_log_id, action: action_taken).perform
  raise "Error: #{response.parse['error']}" unless response.success?
end