2013-09-27 06:45:55 -04:00
|
|
|
When(/^I run cap "(.*?)"$/) do |task|
|
2014-04-25 16:03:22 -04:00
|
|
|
@success, @output = TestApp.cap(task)
|
2013-09-27 06:45:55 -04:00
|
|
|
end
|
|
|
|
|
2017-02-26 01:05:52 -05:00
|
|
|
When(/^I run cap "(.*?)" within the "(.*?)" directory$/) do |task, directory|
|
|
|
|
@success, @output = TestApp.cap(task, directory)
|
|
|
|
end
|
|
|
|
|
2013-09-27 06:45:55 -04:00
|
|
|
When(/^I run cap "(.*?)" as part of a release$/) do |task|
|
|
|
|
TestApp.cap("deploy:new_release_path #{task}")
|
|
|
|
end
|
|
|
|
|
2013-10-11 12:24:37 -04:00
|
|
|
When(/^I run "(.*?)"$/) do |command|
|
2014-01-18 16:18:55 -05:00
|
|
|
@success, @output = TestApp.run(command)
|
2013-10-11 12:24:37 -04:00
|
|
|
end
|