summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-04-07 16:28:55 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2016-04-07 16:28:55 -0700
commitb0075c0012c77a12ccad0c9f1705eb0672319418 (patch)
tree6704f6a618f798620b18f25122995a8b1e501714
parent62ef95008f74b5665fedb115684898a58696d5b1 (diff)
downloadchef-b0075c0012c77a12ccad0c9f1705eb0672319418.tar.gz
debug log the generated Gemfile
-rw-r--r--lib/chef/cookbook/gem_installer.rb2
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