lib/kpm/tasks.rb in kpm-0.7.1 vs lib/kpm/tasks.rb in kpm-0.7.2

- old
+ new

@@ -363,12 +363,15 @@ def info say "Fetching info for version #{options[:version]}...\n" versions_info = KillbillServerArtifact.info(options[:version], - options[:overrides], - options[:ssl_verify]) + options[:sha1_file], + options[:force_download], + options[:verify_sha1], + options[:overrides], + options[:ssl_verify]) say "Dependencies for version #{options[:version]}\n " + (versions_info.map {|k,v| "#{k} #{v}"}).join("\n "), :green say "\n\n" resolved_kb_version = versions_info['killbill'] kb_version = resolved_kb_version.split('.').slice(0,2).join(".") @@ -494,11 +497,10 @@ :type => :string, :default => nil, :desc => 'Database port' desc 'account', 'export/import accounts' def account - logger.info 'Please wait processing the request!!!' begin config_file = nil if options[:killbill_url] && /https?:\/\/[\S]+/.match(options[:killbill_url]).nil? raise Interrupt,'--killbill_url, required format -> http(s)://something' end @@ -568,11 +570,10 @@ :type => :string, :default => nil, :desc => 'Killbill URL ex. http://127.0.0.1:8080' desc 'tenant_config', 'export all tenant-level configs.' def tenant_config - logger.info 'Please wait processing the request!!!' begin if options[:killbill_url] && /https?:\/\/[\S]+/.match(options[:killbill_url]).nil? raise Interrupt,'--killbill_url, required format -> http(s)://something' end @@ -655,11 +656,10 @@ :type => :string, :default => nil, :desc => 'A different folder other than the default bundles directory.' desc 'diagnostic', 'exports and \'zips\' the account data, system, logs and tenant configurations' def diagnostic - logger.info 'Please wait processing the request!!!' begin if options[:account_export] && options[:account_export] == 'account_export' raise Interrupt,'--account_export, please provide a valid account id' end @@ -709,10 +709,10 @@ private def logger logger = ::Logger.new(STDOUT) - logger.level = Logger::INFO + logger.level = ENV['KPM_DEBUG'] ? Logger::DEBUG : Logger::INFO logger end end end end