summaryrefslogtreecommitdiff
path: root/tasks/bundle_util.rb
diff options
context:
space:
mode:
authorJohn Keiser <john@johnkeiser.com>2016-04-18 11:34:18 -0700
committerJohn Keiser <john@johnkeiser.com>2016-04-18 14:21:02 -0700
commit64d524b583b19ae425387a611774c8e70cdc95e5 (patch)
treed4241f13dc6f11c5d6c89f2c5f27c1956e06d0b6 /tasks/bundle_util.rb
parent4225c2b182d093e38347b2a37834336ce09c3e39 (diff)
downloadchef-64d524b583b19ae425387a611774c8e70cdc95e5.tar.gz
Don't lock acceptance for other platforms
Diffstat (limited to 'tasks/bundle_util.rb')
-rw-r--r--tasks/bundle_util.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/tasks/bundle_util.rb b/tasks/bundle_util.rb
index c2f1ca51e3..a057db858a 100644
--- a/tasks/bundle_util.rb
+++ b/tasks/bundle_util.rb
@@ -25,12 +25,12 @@ module BundleUtil
result
end
- def with_bundle_unfrozen(cwd: nil)
+ def with_bundle_unfrozen(cwd: nil, leave_frozen: false)
bundle "config --delete frozen", cwd: cwd
begin
yield
ensure
- bundle "config --local frozen 1", cwd: cwd
+ bundle "config --local frozen 1", cwd: cwd unless leave_frozen
end
end