    # File lib/chef/knife/cookbook_create.rb, line 188
          def create_readme(dir, cookbook_name,readme_format)
            msg("** Creating README for cookbook: #{cookbook_name}")
            unless File.exists?(File.join(dir, cookbook_name, "README.#{readme_format}"))
              open(File.join(dir, cookbook_name, "README.#{readme_format}"), "w") do |file|
                case readme_format
                when "rdoc"
                  file.puts "= DESCRIPTION:\n\n= REQUIREMENTS:\n\n= ATTRIBUTES:\n\n= USAGE:\n\n"
                when "md","mkd","txt"
                  file.puts "Description\n===========\n\nRequirements\n============\n\nAttributes\n==========\n\nUsage\n=====\n\n"
                else
                  file.puts "Description\n\nRequirements\n\nAttributes\n\nUsage\n\n"
                end
              end
            end
          end