20fe5e6a570fa5d9dfd246d020ecc2c18427405f
- Author
- RomainBelorgey <romain.belorgey@gmail.com>
- Committer
- RomainBelorgey <romain.belorgey@gmail.com>
- Date
Message
Update _capistrano
Add use of Capfile commands
Diff
1diff --git a/plugins/capistrano/_capistrano b/plugins/capistrano/_capistrano
2index cf6b50c7f9b62cd5d499352e5520cc43bcd9c2b5..1002dad96fbb4c42803729153642933a344892a0 100644
3--- a/plugins/capistrano/_capistrano
4+++ b/plugins/capistrano/_capistrano
5@@ -1,7 +1,7 @@
6 #compdef cap
7 #autoload
8
9-if [ -f config/deploy.rb ]; then
10+if [[ -f config/deploy.rb || -f Capfile ]]; then
11 if [[ ! -f .cap_tasks~ || config/deploy.rb -nt .cap_tasks~ ]]; then
12 echo "\nGenerating .cap_tasks~..." > /dev/stderr
13 cap --tasks | grep '#' | cut -d " " -f 2 > .cap_tasks~