lib/capistrano/bundle_rsync/bundler.rb in capistrano-bundle_rsync-0.5.1 vs lib/capistrano/bundle_rsync/bundler.rb in capistrano-bundle_rsync-0.5.2

- old
+ new

@@ -3,11 +3,11 @@ class Capistrano::BundleRsync::Bundler < Capistrano::BundleRsync::Base def install Bundler.with_clean_env do with bundle_app_config: config.local_base_path do - opts = "--gemfile #{config.local_release_path}/Gemfile --deployment --quiet --path #{config.local_bundle_path} --without development test" + opts = "--gemfile #{config.local_release_path}/Gemfile --deployment --quiet --path #{config.local_bundle_path} --without #{config.bundle_without.join(' ')}" if standalone = config.bundle_install_standalone_option opts += " #{standalone}" end execute :bundle, opts execute :rm, "#{config.local_base_path}/config" @@ -25,10 +25,10 @@ lines = <<-EOS --- BUNDLE_FROZEN: '1' BUNDLE_PATH: #{shared_path.join('bundle')} -BUNDLE_WITHOUT: development:test +BUNDLE_WITHOUT: #{config.bundle_without.join(':')} BUNDLE_DISABLE_SHARED_GEMS: '1' BUNDLE_BIN: #{release_path.join('bin')} EOS # BUNDLE_BIN requires rbenv-binstubs plugin to make it effectively work bundle_config_path = "#{config.local_base_path}/bundle_config"