From b0075c0012c77a12ccad0c9f1705eb0672319418 Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Thu, 7 Apr 2016 16:28:55 -0700 Subject: debug log the generated Gemfile --- lib/chef/cookbook/gem_installer.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/chef/cookbook') 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 -- cgit v1.2.1