Skip to content

Instantly share code, notes, and snippets.

@adamhjk
Created August 22, 2008 18:32
Show Gist options
  • Save adamhjk/6834 to your computer and use it in GitHub Desktop.
Save adamhjk/6834 to your computer and use it in GitHub Desktop.
# 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