Skip to content
Browse files

Fix the documented cap task bundle_dir default, format a bit

  • Loading branch information...
1 parent ff4376a commit 5895208672a208eefccdea0612120ac0d61edf1b @indirect indirect committed
Showing with 7 additions and 7 deletions.
  1. +7 −7 lib/bundler/capistrano.rb
View
14 lib/bundler/capistrano.rb
@@ -18,7 +18,7 @@
bundle_without variable
set :bundle_gemfile, "Gemfile"
- set :bundle_dir, "vendor/bundle"
+ set :bundle_dir, fetch(:shared_path)+"/bundle"
set :bundle_without, [:development, :test]
DESC
task :install, :except => { :no_release => true } do
@@ -26,12 +26,12 @@
bundle_without = [*fetch(:bundle_without, [:development, :test])].compact
bundle_install_env = fetch(:bundle_install_env, "--deployment")
bundle_gemfile = fetch(:bundle_gemfile, "Gemfile")
- args = [
- "--gemfile #{fetch(:latest_release)}/#{bundle_gemfile}",
- ("--path #{bundle_dir}" unless bundle_dir.to_s.empty?),
- "#{bundle_install_env}",
- ("--without #{bundle_without.join(" ")}" unless bundle_without.empty?)
- ].compact
+
+ args = ["--gemfile #{fetch(:latest_release)}/#{bundle_gemfile}"]
+ args << "--path #{bundle_dir}" unless bundle_dir.to_s.empty?
+ args << "#{bundle_install_env}"
+ args << "--without #{bundle_without.join(" ")}" unless bundle_without.empty?
+
run "bundle install #{args.join(' ')}"
end
end

0 comments on commit 5895208

Please sign in to comment.
Something went wrong with that request. Please try again.