Skip to content
This repository has been archived by the owner on Jun 13, 2019. It is now read-only.

Commit

Permalink
Shellout, not echo
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Holzhauer committed Jul 29, 2015
1 parent 2713164 commit 38df1f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rails/libraries/rails_configuration.rb
Expand Up @@ -37,7 +37,7 @@ 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("mkdir -p #{app_config[:home]}/.bundler && chown #{app_config[:user]} #{app_config[:home]}/.bundler")
Chef::Log.info(OpsWorks::ShellOut.shellout("mkdir -p #{app_config[:home]}/.bundler && chown #{app_config[:user]} #{app_config[:home]}/.bundler"))
Chef::Log.info("cd #{app_root_path} && sudo -Hu #{app_config[:user]} /usr/local/bin/bundle install --path #{app_config[:home]}/.bundler/#{app_name} --without=#{app_config[:ignore_bundler_groups].join(' ')}")
Chef::Log.info(OpsWorks::ShellOut.shellout("cd #{app_root_path} && sudo -Hu #{app_config[:user]} /usr/local/bin/bundle install --path #{app_config[:home]}/.bundler/#{app_name} --without=#{app_config[:ignore_bundler_groups].join(' ')} 2>&1"))
end
Expand Down

0 comments on commit 38df1f5

Please sign in to comment.