浏览代码

Update _capistrano

Add use of Capfile commands
RomainBelorgey 12 年之前
父节点
当前提交
20fe5e6a57
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/capistrano/_capistrano

+ 1 - 1
plugins/capistrano/_capistrano

@@ -1,7 +1,7 @@
 #compdef cap
 #autoload
 
-if [ -f config/deploy.rb ]; then
+if [[ -f config/deploy.rb || -f Capfile ]]; then
   if [[ ! -f .cap_tasks~ || config/deploy.rb -nt .cap_tasks~ ]]; then
     echo "\nGenerating .cap_tasks~..." > /dev/stderr
     cap --tasks | grep '#' | cut -d " " -f 2 > .cap_tasks~