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

Try and rename the app in the OptParser banner.

This commit is contained in:
Lee Hambley 2013-06-14 16:47:42 +02:00
parent 50e27d8906
commit e0ad948a20
2 changed files with 9 additions and 0 deletions

View file

@ -3,6 +3,7 @@ module Capistrano
def initialize
super
@name = "cap"
@rakefiles = %w{capfile Capfile capfile.rb Capfile.rb} << capfile
end

View file

@ -6,6 +6,14 @@ describe Capistrano::Application do
it "provides a --format option which enables the choice of output formatting"
it "identifies itself as cap and not rake" do
pending "Waiting for: https://github.com/jimweirich/rake/pull/204"
out, _ = capture_io do
flags '--help', '-h'
end
out.should match(/\bcap [ -f capfile ]\b/)
end
it "overrides the rake method, but still prints the rake version" do
out, _ = capture_io do
flags '--version', '-V'