summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-04-07 14:21:20 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2016-04-07 14:21:20 -0700
commit62ef95008f74b5665fedb115684898a58696d5b1 (patch)
tree4de699865d0ea4cb3366fde518f2e91e4fc6f43d
parenta1eec7e4757f8f328b427f63381d1bda7283b584 (diff)
downloadchef-lcg/fix-gem-metadata.tar.gz
fix args to gem commandlcg/fix-gem-metadata
-rw-r--r--lib/chef/cookbook/gem_installer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/cookbook/gem_installer.rb b/lib/chef/cookbook/gem_installer.rb
index b9bf0ec73f..741ea5d208 100644
--- a/lib/chef/cookbook/gem_installer.rb
+++ b/lib/chef/cookbook/gem_installer.rb
@@ -50,7 +50,7 @@ class Chef
File.open("#{dir}/Gemfile", "w+") do |tf|
tf.puts "source '#{Chef::Config[:rubygems_url]}'"
cookbook_gems.each do |args|
- tf.puts "gem #{args.map { |i| "'#{i}'" }.join(' ')}"
+ tf.puts "gem(*#{args.inspect})"
end
tf.close
so = shell_out!("bundle install", cwd: dir, env: { "PATH" => path_with_prepended_ruby_bin })