Module: Eco::API::Session::Batch::Launcher::Mode
- Includes:
- Options
- Included in:
- Eco::API::Session::Batch::Launcher, Size
- Defined in:
- lib/eco/api/session/batch/launcher/mode.rb
Instance Method Summary collapse
-
#batch_mode(opts = options) ⇒ Symbol
The batch mode to run.
-
#job_mode?(opts = options) ⇒ Boolean
Are we running in
:jobmode?.
Instance Method Details
#batch_mode(opts = options) ⇒ Symbol
Returns the batch mode to run.
10 11 12 |
# File 'lib/eco/api/session/batch/launcher/mode.rb', line 10 def batch_mode(opts = ) opts.dig(:workflow, :batch, :mode) || :batch end |
#job_mode?(opts = options) ⇒ Boolean
Returns are we running in :job mode?.
15 16 17 |
# File 'lib/eco/api/session/batch/launcher/mode.rb', line 15 def job_mode?(opts = ) batch_mode(opts) == :job end |