aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/capistrano.rb
diff options
context:
space:
mode:
authorSteve Hull <p.witty@gmail.com>2010-11-01 13:45:22 -0700
committerAndre Arko <andre@arko.net>2010-11-02 12:15:49 -0700
commit7777551a6d1faae18065e6420871d2bc88ad5cc3 (patch)
tree63ab6709b9616510fe3b06c3a38032e45e9f7dee /lib/bundler/capistrano.rb
parenta9eba91e987d7cf3831c912dccb652b2a4ddc15d (diff)
downloadbundler-7777551a6d1faae18065e6420871d2bc88ad5cc3.tar.gz
Adding ability to set roles for capistrano bundle:install
Diffstat (limited to 'lib/bundler/capistrano.rb')
-rw-r--r--lib/bundler/capistrano.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/bundler/capistrano.rb b/lib/bundler/capistrano.rb
index 8b386f84..d73ddf92 100644
--- a/lib/bundler/capistrano.rb
+++ b/lib/bundler/capistrano.rb
@@ -7,5 +7,7 @@ require 'bundler/deployment'
Capistrano::Configuration.instance(:must_exist).load do
after "deploy:update_code", "bundle:install"
- Bundler::Deployment.define_task(self, :task, :except => { :no_release => true })
+ opts = {:except => { :no_release => true }}
+ opts[:roles] = self[:bundle_roles] if self[:bundle_roles]
+ Bundler::Deployment.define_task(self, :task, opts)
end