diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-04-07 12:49:18 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-04-07 12:49:18 -0700 |
commit | 39ad5e8574783dd9f32cd553a3d5854f844496c1 (patch) | |
tree | dc18fb7239db24f3ca2c91f6501022c03228084e /lib/chef/cookbook | |
parent | b88f264e815f8a4f890eb0103d017fa7b40679ae (diff) | |
download | chef-39ad5e8574783dd9f32cd553a3d5854f844496c1.tar.gz |
tighten up the chdir logic
Diffstat (limited to 'lib/chef/cookbook')
-rw-r--r-- | lib/chef/cookbook/gem_installer.rb | 4 |
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 |