feature: print number of rules checked

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
This commit is contained in:
Dominik Richter 2015-06-16 23:33:27 +02:00
parent 1247dd7bc7
commit 1a05865d6e
2 changed files with 7 additions and 1 deletions

View file

@ -11,6 +11,10 @@ module Vulcano
puts msg unless @quiet
end
def info msg
show " . ".color(:white) + msg
end
def error msg
show "".color(:red).bright + msg
end

View file

@ -79,7 +79,9 @@ module Vulcano
invalid.("Missing description for rule #{k}") if v['desc'].nil?
end
@log.ok "Valid spec file in #{f}" if valid && specs.instance_variable_get(:@invalid_calls).empty?
if valid && specs.instance_variable_get(:@invalid_calls).empty?
@log.ok "Valid spec file in #{f} with #{meta['rules'].length} rules"
end
end
private