Class: SknUtils::JobWrapper
Class Method Summary collapse
Class Method Details
.call(command, callable) ⇒ Object
64 65 66 67 68 69 |
# File 'lib/skn_utils/concurrent_jobs.rb', line 64 def self.call(command, callable) callable.call(command) rescue => ex failures = ex.backtrace.map {|x| x.split("/").last }.join(",") SknFailure.(ex.class.name, { cause: ex., backtrace: failures}) end |