print validation info on default checking mode

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
This commit is contained in:
Dominik Richter 2015-06-10 17:54:35 +02:00
parent 9f02a88e54
commit 8a8021a7ab

View file

@ -15,6 +15,7 @@ class VulcanoCLI < Thor
option :print, aliases: :p, type: :boolean option :print, aliases: :p, type: :boolean
def json(*paths) def json(*paths)
paths.each do |path| paths.each do |path|
Vulcano::Profiles.new.valid_folder? path unless options[:print]
vc = Vulcano::Profiles.new({ quiet: options[:print] }) vc = Vulcano::Profiles.new({ quiet: options[:print] })
vc.add_folder(path) vc.add_folder(path)
if options[:print] if options[:print]