Sha256: b0157485d147e1d2ed440cca75259553920a3a25692c7708d1259d81c007ca66

Contents?: true

Size: 556 Bytes

Versions: 3

Compression:

Stored size: 556 Bytes

Contents

module Eco
  module API
    class Session
      class Batch
        module Launcher
          module StatusHandling
            private

            def tap_status(enviro:, queue:, method:, status: nil)
              status ||= Eco::API::Session::Batch::Status.new(
                enviro,
                queue:  queue,
                method: method
              )

              status.tap do
                yield(status) if block_given?
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
eco-helpers-3.0.21 lib/eco/api/session/batch/launcher/status_handling.rb
eco-helpers-3.0.20 lib/eco/api/session/batch/launcher/status_handling.rb
eco-helpers-3.0.19 lib/eco/api/session/batch/launcher/status_handling.rb