diff --git a/lib/aruba/api/core.rb b/lib/aruba/api/core.rb index de3158e8b..d0e51776e 100644 --- a/lib/aruba/api/core.rb +++ b/lib/aruba/api/core.rb @@ -182,6 +182,8 @@ def expand_path(file_name, dir_string = nil) def with_environment(env = {}, &block) old_aruba_env = aruba.environment.to_h + $stdout.puts "Current Platform: #{Aruba.platform.class.to_s}" + # make sure the old environment is really restored in "ENV" Aruba.platform.with_environment aruba.environment.update(env).to_h, &block ensure