Created
August 22, 2008 18:32
-
-
Save adamhjk/6834 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# call with cap -S only_host=monkeypants | |
only_host ||= nil | |
role(:monkey) do | |
if only_host | |
[ only_host ] | |
else | |
[ :static, :host, :list ] | |
end | |
end | |
role(:database) do | |
... | |
end | |
task :foo, :roles => [ :monkey ] do | |
bar | |
end | |
task :bar, :roles => [ :database ] do | |
# | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment