class ChefCLI::Command::GeneratorCommands::Cookbook

def cookbook_path_in_git_repo?

def cookbook_path_in_git_repo?
  Pathname.new(cookbook_full_path).ascend do |dir|
    return true if File.directory?(File.join(dir.to_s, ".git"))
  end
  false
end