mirror of
https://github.com/inspec/inspec
synced 2024-11-10 07:04:15 +00:00
feature: print number of rules checked
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
This commit is contained in:
parent
1247dd7bc7
commit
1a05865d6e
2 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue