lib/eco/api/session/batch/launcher/status_handling.rb in eco-helpers-3.0.18 vs lib/eco/api/session/batch/launcher/status_handling.rb in eco-helpers-3.0.19
- old
+ new
@@ -4,17 +4,19 @@
class Batch
module Launcher
module StatusHandling
private
- def tap_status(enviro:, queue:, method:, status: nil, &block)
+ def tap_status(enviro:, queue:, method:, status: nil)
status ||= Eco::API::Session::Batch::Status.new(
enviro,
queue: queue,
method: method
)
- status.tap(&block)
+ status.tap do
+ yield(status) if block_given?
+ end
end
end
end
end
end