From 57551659cab3a17bf2062d3f3abfede758c86f2b Mon Sep 17 00:00:00 2001 From: Andrew Walter Date: Mon, 14 May 2018 20:09:40 +1000 Subject: [PATCH] Print current platform to stdout --- lib/aruba/api/core.rb | 2 ++ 1 file changed, 2 insertions(+) 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