1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00
capistrano/features/step_definitions/cap_commands.rb

13 lines
263 B
Ruby
Raw Normal View History

When(/^I run cap "(.*?)"$/) do |task|
@success = TestApp.cap(task)
end
When(/^I run cap "(.*?)" as part of a release$/) do |task|
TestApp.cap("deploy:new_release_path #{task}")
end
When(/^I run "(.*?)"$/) do |command|
@success = TestApp.run(command)
end