Top Level Namespace
Defined Under Namespace
Modules: Baf
Instance Method Summary collapse
- #run(state, cmd: nil, wait: true, args: []) ⇒ Object
- #wait_output(pattern, output: -> { $_baf[:process].output }, times: 1) ⇒ Object
Instance Method Details
#run(state, cmd: nil, wait: true, args: []) ⇒ Object
1 2 3 4 5 6 7 |
# File 'lib/baf/testing/cucumber/steps/execution.rb', line 1 def run state, cmd: nil, wait: true, args: [] cmd ||= state[:program] Baf::Testing.run cmd + args, wait: wait, env_allow: state.fetch(:env_allow) { [] }, timeout: state[:exec_timeout] end |
#wait_output(pattern, output: -> { $_baf[:process].output }, times: 1) ⇒ Object
1 2 3 |
# File 'lib/baf/testing/cucumber/steps/output_wait.rb', line 1 def wait_output pattern, output: -> { $_baf[:process].output }, times: 1 Baf::Testing.wait_output pattern, stream: output, times: times end |