Class: NewmanScenario::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/newman_scenario/cli.rb

Instance Method Summary collapse

Instance Method Details

#configureObject



27
28
29
# File 'lib/newman_scenario/cli.rb', line 27

def configure( )
  Scenario.configure
end

#run_scenario(environment = nil, scenario = nil) ⇒ Object



17
18
19
# File 'lib/newman_scenario/cli.rb', line 17

def run_scenario( environment = nil, scenario = nil )
  Scenario.new.run(scenario_name: scenario, environment_name: environment, bail: options[:bail], no_prompt: options.key?(:no_prompt))
end