class ChefCLI::Command::DescribeCookbook
def check_cookbook_path
def check_cookbook_path unless File.exist?(cookbook_path) ui.err("Given cookbook path '#{cookbook_path}' does not exist or is not readable") return false end mdrb_path = File.join(cookbook_path, "metadata.rb") mdjson_path = File.join(cookbook_path, "metadata.json") unless File.exist?(mdrb_path) || File.exist?(mdjson_path) ui.err("Given cookbook path '#{cookbook_path}' does not appear to be a cookbook, it does not contain a metadata.rb or metadata.json") return false end true end