vagrant-berkshelf 5.1.0 → 5.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -0
- data/Gemfile +4 -3
- data/lib/vagrant-berkshelf/helpers.rb +1 -38
- data/lib/vagrant-berkshelf/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2feaee3fa0bba53fc033e08d798eb92fea7a7d67
|
4
|
+
data.tar.gz: 118dc4a9f16781b91c4a48cb2e6ae42a548d9a18
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3183d6bbb5f5e9e5fe1570ec152b37fc38810452965077d2238325c89183d48945ed7b14e03da87b36c1818b54f2d7334230b9d552e4ee2f81867197e7f757c1
|
7
|
+
data.tar.gz: 1a35670f803c4785f54b0fd0b2c68c95ea4ae620b417fac1aa1aa742ef3cb3ae7b44eddb40a48d88c4df57359914ee55b0c1f0dfdae8ee63867d94e759e3c304
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
@@ -59,7 +59,7 @@ module VagrantPlugins
|
|
59
59
|
|
60
60
|
final_command = [berks_bin, command, *args]
|
61
61
|
|
62
|
-
|
62
|
+
Vagrant::Util::Env.with_clean_env do
|
63
63
|
r = Subprocess.execute(*final_command)
|
64
64
|
if r.exit_code != 0
|
65
65
|
raise BerksCommandFailed.new(final_command.join(' '), r.stdout, r.stderr)
|
@@ -146,43 +146,6 @@ module VagrantPlugins
|
|
146
146
|
env[:machine].data_dir.join("berkshelf")
|
147
147
|
end
|
148
148
|
|
149
|
-
#
|
150
|
-
# Execute the given command, removing any Ruby-specific environment
|
151
|
-
# variables. This is an "enhanced" version of +Bundler.with_clean_env+,
|
152
|
-
# which only removes Bundler-specific values. We need to remove all
|
153
|
-
# values, specifically:
|
154
|
-
#
|
155
|
-
# - _ORIGINAL_GEM_PATH
|
156
|
-
# - GEM_PATH
|
157
|
-
# - GEM_HOME
|
158
|
-
# - GEM_ROOT
|
159
|
-
# - BUNDLE_BIN_PATH
|
160
|
-
# - BUNDLE_GEMFILE
|
161
|
-
# - RUBYLIB
|
162
|
-
# - RUBYOPT
|
163
|
-
# - RUBY_ENGINE
|
164
|
-
# - RUBY_ROOT
|
165
|
-
# - RUBY_VERSION
|
166
|
-
#
|
167
|
-
# This will escape Vagrant's environment entirely, which is required if
|
168
|
-
# calling an executable that lives in another Ruby environment. The
|
169
|
-
# original environment restored at the end of this call.
|
170
|
-
#
|
171
|
-
# @param [Proc] block
|
172
|
-
# the block to execute with the cleaned environment
|
173
|
-
#
|
174
|
-
def with_clean_env(&block)
|
175
|
-
original = ENV.to_hash
|
176
|
-
|
177
|
-
ENV.delete("_ORIGINAL_GEM_PATH")
|
178
|
-
ENV.delete_if { |k,_| k.start_with?("BUNDLE_") }
|
179
|
-
ENV.delete_if { |k,_| k.start_with?("GEM_") }
|
180
|
-
ENV.delete_if { |k,_| k.start_with?("RUBY") }
|
181
|
-
|
182
|
-
yield
|
183
|
-
ensure
|
184
|
-
ENV.replace(original.to_hash)
|
185
|
-
end
|
186
149
|
end
|
187
150
|
end
|
188
151
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-berkshelf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.1.
|
4
|
+
version: 5.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jamie Winsor
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-
|
13
|
+
date: 2016-12-06 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: spork
|