diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-04-07 14:21:20 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-04-07 14:21:20 -0700 |
commit | 62ef95008f74b5665fedb115684898a58696d5b1 (patch) | |
tree | 4de699865d0ea4cb3366fde518f2e91e4fc6f43d /lib | |
parent | a1eec7e4757f8f328b427f63381d1bda7283b584 (diff) | |
download | chef-62ef95008f74b5665fedb115684898a58696d5b1.tar.gz |
fix args to gem commandlcg/fix-gem-metadata
Diffstat (limited to 'lib')
-rw-r--r-- | lib/chef/cookbook/gem_installer.rb | 2 |
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 }) |