-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1867 from capistrano/allow-cap-t-without-capfile
Allow `cap -T` to run without Capfile present
- Loading branch information
Showing
5 changed files
with
24 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,21 @@ | ||
Feature: Installation | ||
|
||
Background: | ||
Given a test app with the default configuration | ||
Given a test app without any configuration | ||
|
||
Scenario: The "install" task documentation can be viewed | ||
When I run "cap -T" | ||
Then the task is successful | ||
And contains "cap install" in the output | ||
|
||
Scenario: With default stages | ||
When I run cap "install" | ||
When I run "cap install" | ||
Then the deploy.rb file is created | ||
And the default stage files are created | ||
And the tasks folder is created | ||
|
||
Scenario: With specified stages | ||
When I run cap "install STAGES=qa,production" | ||
When I run "cap install STAGES=qa,production" | ||
Then the deploy.rb file is created | ||
And the specified stage files are created | ||
And the tasks folder is created |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters