summaryrefslogtreecommitdiff
path: root/lib/chef/cookbook
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-04-07 12:49:18 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2016-04-07 12:49:18 -0700
commit39ad5e8574783dd9f32cd553a3d5854f844496c1 (patch)
treedc18fb7239db24f3ca2c91f6501022c03228084e /lib/chef/cookbook
parentb88f264e815f8a4f890eb0103d017fa7b40679ae (diff)
downloadchef-39ad5e8574783dd9f32cd553a3d5854f844496c1.tar.gz
tighten up the chdir logic
Diffstat (limited to 'lib/chef/cookbook')
-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