mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
a91d4eef0c
Capistrano 'git:check' task executes a `git ls-remote -h #{repo_url}` command to check if remote repo is accessible. If successful, command output is a list of references and their SHAs. Task should be successful and we're pretty sure remote repo will have a `master` reference, so that's what we're asserting. We're NOT asserting: * repo references other than master - likely to change * reference SHAs - will definitely change
12 lines
281 B
Ruby
12 lines
281 B
Ruby
When(/^I run cap "(.*?)"$/) do |task|
|
|
@success, @output = 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, @output = TestApp.run(command)
|
|
end
|
|
|