lib/testlab/utility/logger.rb in testlab-0.6.7 vs lib/testlab/utility/logger.rb in testlab-0.6.8

- old
+ new

@@ -18,18 +18,16 @@ def log_page_break(max_key_length, char='-') (char * max_key_length) end def log_details(testlab) - @command = ZTK::Command.new(:silence => true, :ignore_exit_status => true) { "hostname" => Socket.gethostname.inspect, "program" => $0.to_s.inspect, "config_dir" => testlab.config_dir.inspect, "logdev" => testlab.ui.logger.logdev.inspect, - "vagrant_version" => @command.exec(%(/usr/bin/env vagrant --version)).output.strip.inspect, - "virtualbox_version" => @command.exec(%(/usr/bin/env vboxmanage --version)).output.strip.inspect + "version" => TestLab::VERSION } end def log_ruby dependencies = { @@ -42,14 +40,18 @@ dependencies end def log_dependencies + @command = ZTK::Command.new(:silence => true, :ignore_exit_status => true) + { "gli_version" => ::GLI::VERSION.inspect, "lxc_version" => ::LXC::VERSION.inspect, "ztk_version" => ::ZTK::VERSION.inspect, "activesupport_version" => ::ActiveSupport::VERSION::STRING.inspect, + "vagrant_version" => @command.exec(%(/usr/bin/env vagrant --version)).output.strip.inspect, + "virtualbox_version" => @command.exec(%(/usr/bin/env vboxmanage --version)).output.strip.inspect } end def log_header(testlab) log_lines = Array.new