class Chef::Taste::Cli

The CLI for chef-taste

Public Instance Methods

check() click to toggle source

The check command

# File lib/chef/taste/cli.rb, line 43
def check
  dependencies = DependencyChecker.check
  if dependencies.empty?
    puts 'No dependent cookbooks'.yellow
  else
    Display.print(dependencies, options[:format])
  end
rescue NotACookbookError
  puts 'The path is not a cookbook path'.red
rescue UnsupportedDisplayFormatError
  puts 'The display format is not supported'.red
end