Implement recipe arguments
CLI will stop arguments processing after the special `--' argument, the rest will be saved in the env and accessible through a new task keyword: `recipe_argv'.
This commit is contained in:
@@ -51,6 +51,11 @@ When /^I successfully execute the recipe with option (-.+)$/ do |option|
|
||||
assert_exit_status 0
|
||||
end
|
||||
|
||||
When /^I successfully execute the recipe with arguments "([^"]+)"$/ do |arguments|
|
||||
run_simple "producer recipe.rb -- #{arguments}", false
|
||||
assert_exit_status 0
|
||||
end
|
||||
|
||||
When /^I execute the recipe interactively$/ do
|
||||
run_interactive 'producer recipe.rb'
|
||||
end
|
||||
|
Reference in New Issue
Block a user