lib/hypernova/plugin_helper.rb in hypernova-1.2.0 vs lib/hypernova/plugin_helper.rb in hypernova-1.3.0
- old
+ new
@@ -45,11 +45,11 @@
response
end
end
end
- def on_error(error, job = {})
- Hypernova.plugins.each { |plugin| plugin.on_error(error, job) if plugin.respond_to?(:on_error) }
+ def on_error(error, job = nil, jobs_hash = nil)
+ Hypernova.plugins.each { |plugin| plugin.on_error(error, job, jobs_hash) if plugin.respond_to?(:on_error) }
end
def on_success(res, jobs_hash)
Hypernova.plugins.each do |plugin|
plugin.on_success(res, jobs_hash) if plugin.respond_to?(:on_success)