From 1b73438de4c407b602e2e60f85be8884ed5c3a4e Mon Sep 17 00:00:00 2001 From: varac Date: Tue, 19 Jan 2016 20:06:25 +0100 Subject: add debug function for "leap debug" --- lib/leap_cli/remote/leap_plugin.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/leap_cli/remote/leap_plugin.rb b/lib/leap_cli/remote/leap_plugin.rb index 0106d85..21e69ee 100644 --- a/lib/leap_cli/remote/leap_plugin.rb +++ b/lib/leap_cli/remote/leap_plugin.rb @@ -65,6 +65,13 @@ module LeapCli; module Remote; module LeapPlugin run "touch #{Leap::Platform.init_path}" end + # + # dumps debugging information + # # + def debug + run "#{Leap::Platform.leap_dir}/bin/debug.sh" + end + # # dumps the recent deploy history to the console # @@ -214,4 +221,4 @@ module LeapCli; module Remote; module LeapPlugin # end # puts "finished with return code: #{return_code}" -end; end; end \ No newline at end of file +end; end; end -- cgit v1.2.3 From 4a8a1a9b29d2b09786f21583984f04d00e482712 Mon Sep 17 00:00:00 2001 From: varac Date: Sun, 24 Jan 2016 22:09:08 +0100 Subject: Filter more puppet 3 uppercase log msgs Puppet 3 changed log prefixes to uppercase. --- lib/leap_cli/logger.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/leap_cli/logger.rb b/lib/leap_cli/logger.rb index 8b55bb3..9e98321 100644 --- a/lib/leap_cli/logger.rb +++ b/lib/leap_cli/logger.rb @@ -129,6 +129,8 @@ module LeapCli { :match => /WARNING: The following packages cannot be authenticated!/, :color => :red, :level => 0, :priority => -10}, # PUPPET + { :match => /^(W|w)arning: Not collecting exported resources without storeconfigs/, :level => 2, :color => :yellow, :priority => -10}, + { :match => /^(W|w)arning: Found multiple default providers for vcsrepo:/, :level => 2, :color => :yellow, :priority => -10}, { :match => /^(W|w)arning: .*is deprecated.*$/, :level => 2, :color => :yellow, :priority => -10}, { :match => /^(W|w)arning: Scope.*$/, :level => 2, :color => :yellow, :priority => -10}, { :match => /^(N|n)otice:/, :level => 1, :color => :cyan, :priority => -20}, -- cgit v1.2.3