summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/chef/cookbook/gem_installer.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/chef/cookbook/gem_installer.rb b/lib/chef/cookbook/gem_installer.rb
index 4b41951fe4..b074890b36 100644
--- a/lib/chef/cookbook/gem_installer.rb
+++ b/lib/chef/cookbook/gem_installer.rb
@@ -53,9 +53,7 @@ class Chef
tf.puts "gem #{args.map { |i| "'#{i}'" }.join(' ')}"
end
tf.close
- Dir.chdir(dir) do
- so = shell_out!("bundle install")
- end
+ so = shell_out!("bundle install", pwd: dir)
end
end
rescue Exception => e