diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-04-07 16:28:55 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-04-07 16:28:55 -0700 |
commit | b0075c0012c77a12ccad0c9f1705eb0672319418 (patch) | |
tree | 6704f6a618f798620b18f25122995a8b1e501714 /lib | |
parent | 62ef95008f74b5665fedb115684898a58696d5b1 (diff) | |
download | chef-b0075c0012c77a12ccad0c9f1705eb0672319418.tar.gz |
debug log the generated Gemfile
Diffstat (limited to 'lib')
-rw-r--r-- | lib/chef/cookbook/gem_installer.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/chef/cookbook/gem_installer.rb b/lib/chef/cookbook/gem_installer.rb index 741ea5d208..06e98fe3e9 100644 --- a/lib/chef/cookbook/gem_installer.rb +++ b/lib/chef/cookbook/gem_installer.rb @@ -53,6 +53,8 @@ class Chef tf.puts "gem(*#{args.inspect})" end tf.close + Chef::Log.debug("generated Gemfile contents:") + Chef::Log.debug(IO.read(tf.path)) so = shell_out!("bundle install", cwd: dir, env: { "PATH" => path_with_prepended_ruby_bin }) Chef::Log.info(so.stdout) end |