diff options
author | Robby Russell <robby@planetargon.com> | 2012-12-02 12:00:52 -0800 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2012-12-02 12:00:52 -0800 |
commit | ef5a65b207934dce79c7318892a65b399ec3f9e3 (patch) | |
tree | 329494778978fcc0f5b0dfb6951ef327129a3b3f /plugins/cap | |
parent | 56f094860bec91c1968d46cccd5d2c2e3d179de1 (diff) | |
parent | cfeb57024d78d84521ea6676a49182dee9a98b52 (diff) | |
download | zsh-ef5a65b207934dce79c7318892a65b399ec3f9e3.tar.gz zsh-ef5a65b207934dce79c7318892a65b399ec3f9e3.tar.bz2 zsh-ef5a65b207934dce79c7318892a65b399ec3f9e3.zip |
Renaming cap to capistrano
Diffstat (limited to 'plugins/cap')
-rw-r--r-- | plugins/cap/cap.plugin.zsh | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/plugins/cap/cap.plugin.zsh b/plugins/cap/cap.plugin.zsh deleted file mode 100644 index d22d10401..000000000 --- a/plugins/cap/cap.plugin.zsh +++ /dev/null @@ -1,41 +0,0 @@ -stat -f%m . > /dev/null 2>&1 -if [ "$?" = 0 ]; then - stat_cmd=(stat -f%m) -else - stat_cmd=(stat -L --format=%y) -fi - -# Cache filename -_cap_show_undescribed_tasks=0 - -# Cache filename -_cap_task_cache_file='.cap_task_cache' - -_cap_get_task_list () { - if [ ${_cap_show_undescribed_tasks} -eq 0 ]; then - cap -T | grep '^cap' | cut -d " " -f 2 - else - cap -vT | grep '^cap' | cut -d " " -f 2 - fi -} - -_cap_does_task_list_need_generating () { - - if [ ! -f ${_cap_task_cache_file} ]; then return 0; - else - accurate=$($stat_cmd $_cap_task_cache_file) - changed=$($stat_cmd config/deploy.rb) - return $(expr $accurate '>=' $changed) - fi -} - -function _cap () { - if [ -f config/deploy.rb ]; then - if _cap_does_task_list_need_generating; then - _cap_get_task_list > ${_cap_task_cache_file} - fi - compadd `cat ${_cap_task_cache_file}` - fi -} - -compdef _cap cap |