File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -7,14 +7,12 @@ def run_command(cmd, timeout = nil)
7
7
unset_bundler_env_vars
8
8
# Ensure the correct Gemfile and binstubs are found
9
9
in_current_directory do
10
- with_unbundled_env do
11
- super ( exec_cmd , timeout )
12
- end
10
+ super ( exec_cmd , timeout )
13
11
end
14
12
end
15
13
16
14
def unset_bundler_env_vars
17
- empty_env = with_environment { with_unbundled_env { ENV . to_h } }
15
+ empty_env = with_environment { ENV . to_h }
18
16
aruba_env = aruba . environment . to_h
19
17
( aruba_env . keys - empty_env . keys ) . each do |key |
20
18
delete_environment_variable key
@@ -23,14 +21,6 @@ def unset_bundler_env_vars
23
21
set_environment_variable k , v
24
22
end
25
23
end
26
-
27
- def with_unbundled_env
28
- if Bundler . respond_to? ( :with_unbundled_env )
29
- Bundler . with_unbundled_env { yield }
30
- else
31
- Bundler . with_clean_env { yield }
32
- end
33
- end
34
24
end
35
25
36
26
World ( ArubaExt )
You can’t perform that action at this time.
0 commit comments