Class: Marty::DeloreanBackgroundJob

Inherits:
CronJob
  • Object
show all
Defined in:
app/jobs/marty/delorean_background_job.rb

Instance Attribute Summary

Attributes inherited from CronJob

#schedule_id

Instance Method Summary collapse

Methods inherited from CronJob

#enqueue, #log_failure, #log_success, remove, reschedule, schedule, scheduled?

Instance Method Details

#perform(script, node, attribute) ⇒ Object



3
4
5
6
# File 'app/jobs/marty/delorean_background_job.rb', line 3

def perform(script, node, attribute)
  engine = Marty::ScriptSet.new.get_engine(script)
  engine.evaluate(node, attribute, {})
end