summaryrefslogtreecommitdiff
path: root/lib/bundler/capistrano.rb
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2012-05-23 15:26:06 -0700
committerAndre Arko <andre@arko.net>2012-05-23 15:26:06 -0700
commit5d518bec98d44e474eca37a0fe5fe9b79b5afb19 (patch)
treed4fd0ca3a96bb707afbb693ba389404689f3dc89 /lib/bundler/capistrano.rb
parentd65c182503016dc857604434eb3daba3be4685c9 (diff)
downloadbundler-5d518bec98d44e474eca37a0fe5fe9b79b5afb19.tar.gz
fixes for capistrano integration
switch the bundler hook to before "deploy:finalize_update", so that finalize_update will not run if `bundle install` fails. (thanks @leehambley) change from `current_release` to `latest_release`, because both cap and vlad provide more robust directory-finding code behind `latest_release`. (thanks @dontangg) closes #1264
Diffstat (limited to 'lib/bundler/capistrano.rb')
-rw-r--r--lib/bundler/capistrano.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/capistrano.rb b/lib/bundler/capistrano.rb
index dc551c5041..e37703d7d8 100644
--- a/lib/bundler/capistrano.rb
+++ b/lib/bundler/capistrano.rb
@@ -5,7 +5,7 @@
require 'bundler/deployment'
Capistrano::Configuration.instance(:must_exist).load do
- after "deploy:finalize_update", "bundle:install"
+ before "deploy:finalize_update", "bundle:install"
Bundler::Deployment.define_task(self, :task, :except => { :no_release => true })
set :rake, lambda { "#{fetch(:bundle_cmd, "bundle")} exec rake" }
end