From d68e6a718f0b8c982b0d502558b6b25eb2df23fb Mon Sep 17 00:00:00 2001 From: elijah Date: Sun, 10 Feb 2013 23:54:50 -0800 Subject: add debug notice if file is missing for macro file_path(x) --- lib/leap_cli/config/object.rb | 2 +- lib/leap_cli/log.rb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/leap_cli/config/object.rb b/lib/leap_cli/config/object.rb index b0e3017..6f30fe9 100644 --- a/lib/leap_cli/config/object.rb +++ b/lib/leap_cli/config/object.rb @@ -257,7 +257,7 @@ module LeapCli end actual_path = Path.find_file(path) if actual_path.nil? - Util::log 2, :missing, path + Util::log 2, :skipping, "file_path(\"#{path}\") because there is no such file." nil else if actual_path =~ /^#{Regexp.escape(Path.provider_base)}/ diff --git a/lib/leap_cli/log.rb b/lib/leap_cli/log.rb index e111693..ab361d5 100644 --- a/lib/leap_cli/log.rb +++ b/lib/leap_cli/log.rb @@ -88,6 +88,7 @@ module LeapCli when :nochange then ['no change', :magenta] when :loading then ['loading', :magenta] when :missing then ['missing', :yellow, :bold] + when :skipping then ['skipping', :yellow, :bold] when :run then ['run', :magenta] when :failed then ['FAILED', :red, :bold] when :completed then ['completed', :green, :bold] -- cgit v1.2.3