Class: SknUtils::CallableWrapperJob

Inherits:
Object
  • Object
show all
Defined in:
lib/skn_utils/concurrent_jobs.rb

Class Method Summary collapse

Class Method Details

.call(callable, command) ⇒ Object



56
57
58
59
60
61
# File 'lib/skn_utils/concurrent_jobs.rb', line 56

def self.call(callable, command)
  callable.call(command)
rescue => ex
  failures = ex.backtrace.map {|x| x.split("/").last }.join(",")
  SknFailure.(ex.class.name, { cause: ex.message, backtrace: failures})
end