bin/tl in testlab-0.7.6 vs bin/tl in testlab-0.8.0

- old
+ new

@@ -20,10 +20,11 @@ ################################################################################ require 'gli' require 'testlab' include GLI::App +include TestLab::Utility::GLI include TestLab::Utility::Misc version TestLab::VERSION program_desc %(TestLab - A toolkit for building virtual computer labs) @@ -69,25 +70,28 @@ :logger => @logger, :verbose => global[:verbose], :quiet => global[:quiet] ) + @ui.logger.debug { "global(#{global.inspect})" } + @ui.logger.debug { "options(#{options.inspect})" } + @ui.logger.debug { "args(#{args.inspect})" } + @testlab = TestLab.new( :ui => @ui, :labfile_path => global[:labfile], :config_dir => global[:config], :repo_dir => global[:repo] ) - @ui.logger.debug { "global(#{global.inspect})" } - @ui.logger.debug { "options(#{options.inspect})" } - @ui.logger.debug { "args(#{args.inspect})" } - TestLab::Utility.log_header(@testlab).each { |line| @logger.info { line } } + @testlab.boot + if !@ui.quiet? message = format_message("TestLab v#{TestLab::VERSION} Loaded".black.bold) @testlab.ui.stdout.puts(message) + @testlab.ui.logger.info { message.uncolor } end true end