class ChefCLI::Command::GeneratorCommands::CookbookCodeFile

def validate_cookbook_path

def validate_cookbook_path
  unless File.file?(File.join(cookbook_path, "metadata.rb"))
    @errors << "Directory #{cookbook_path} is not a cookbook"
    @params_valid = false
  end
end