bin/hammer in hammer_cli-0.0.12 vs bin/hammer in hammer_cli-0.0.13

- old
+ new

@@ -35,10 +35,13 @@ if preparser.verbose? root_logger = Logging.logger.root root_logger.appenders = root_logger.appenders << ::Logging.appenders.stderr(:layout => HammerCLI::Logger::COLOR_LAYOUT) end +hammer_version = Gem.loaded_specs['hammer_cli'].version.to_s +logger.info "Initialization of Hammer CLI (#{hammer_version}) has started..." + # log which config was loaded (now when we have logging) HammerCLI::Settings.path_history.each do |path| logger.info "Configuration from the file #{path} has been loaded" end @@ -54,9 +57,10 @@ logger.error "Error while loading module #{m}" handler = HammerCLI::ExceptionHandler.new(:context => {}, :adapter => :base) handler.handle_exception(e) exit HammerCLI::EX_SOFTWARE end - logger.info "Extension module #{m} loaded" + module_version = Gem.loaded_specs[m].version.to_s + logger.info "Extension module #{m} (#{module_version}) loaded" end exit HammerCLI::MainCommand.run || HammerCLI::EX_OK