Permalink
Browse files

Call bundler with path option instead of deprecated path argument.

  • Loading branch information...
1 parent 12fee1c commit 0b861055b5641ee1b7d3332f46fa969e2f0a805f @ikanusim ikanusim committed Sep 20, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 rails/libraries/rails_configuration.rb
@@ -37,8 +37,8 @@ def self.determine_database_adapter(app_name, app_config, app_root_path, options
def self.bundle(app_name, app_config, app_root_path)
if File.exists?("#{app_root_path}/Gemfile")
Chef::Log.info("Gemfile detected. Running bundle install.")
- Chef::Log.info("sudo su deploy -c 'cd #{app_root_path} && bundle install #{app_config[:home]}/.bundler/#{app_name} --without=test development'")
- Chef::Log.info(`sudo su deploy -c 'cd #{app_root_path} && bundle install #{app_config[:home]}/.bundler/#{app_name} --without=test development 2>&1'`)
+ Chef::Log.info("sudo su deploy -c 'cd #{app_root_path} && bundle install --path #{app_config[:home]}/.bundler/#{app_name} --without=test development'")
+ Chef::Log.info(`sudo su deploy -c 'cd #{app_root_path} && bundle install --path #{app_config[:home]}/.bundler/#{app_name} --without=test development 2>&1'`)
end
end
end

0 comments on commit 0b86105

Please sign in to comment.