lib/capistrano/bundle_rsync/bundler.rb in capistrano-bundle_rsync-0.4.3 vs lib/capistrano/bundle_rsync/bundler.rb in capistrano-bundle_rsync-0.4.4

- old
+ new

@@ -2,11 +2,13 @@ require 'capistrano/configuration/filter' class Capistrano::BundleRsync::Bundler < Capistrano::BundleRsync::Base def install Bundler.with_clean_env do - execute :bundle, "--gemfile #{config.local_release_path}/Gemfile --deployment --quiet --path #{config.local_bundle_path} --without development test" - execute :rm, "#{config.local_release_path}/.bundle/config" + with bundle_app_config: config.local_base_path do + execute :bundle, "--gemfile #{config.local_release_path}/Gemfile --deployment --quiet --path #{config.local_bundle_path} --without development test" + execute :rm, "#{config.local_base_path}/config" + end end end def rsync hosts = release_roles(:all)