Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
20fe5e6a
Commit
20fe5e6a
authored
Mar 01, 2013
by
RomainBelorgey
Browse files
Update _capistrano
Add use of Capfile commands
parent
fce68bbb
Changes
1
Show whitespace changes
Inline
Side-by-side
plugins/capistrano/_capistrano
View file @
20fe5e6a
#compdef cap
#compdef cap
#autoload
#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
if [[ ! -f .cap_tasks~ || config/deploy.rb -nt .cap_tasks~ ]]; then
echo "\nGenerating .cap_tasks~..." > /dev/stderr
echo "\nGenerating .cap_tasks~..." > /dev/stderr
cap --tasks | grep '#' | cut -d " " -f 2 > .cap_tasks~
cap --tasks | grep '#' | cut -d " " -f 2 > .cap_tasks~
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment