    # File lib/chef/knife/cookbook_create.rb, line 212
          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 "= \#{cookbook_name} Cookbook\nTODO: Enter the cookbook description here.\n\ne.g.\nThis cookbook makes your favorite breakfast sandwhich.\n\n== Requirements\nTODO: List your cookbook requirements. Be sure to include any requirements this cookbook has on platforms, libraries, other cookbooks, packages, operating systems, etc.\n\ne.g.\n==== packages\n- +toaster+ - \#{cookbook_name} needs toaster to brown your bagel.\n\n== Attributes\nTODO: List you cookbook attributes here.\n\ne.g.\n==== \#{cookbook_name}::default\n<table>\n<tr>\n<th>Key</th>\n<th>Type</th>\n<th>Description</th>\n<th>Default</th>\n</tr>\n<tr>\n<td><tt>['\#{cookbook_name}']['bacon']</tt></td>\n<td>Boolean</td>\n<td>whether to include bacon</td>\n<td><tt>true</tt></td>\n</tr>\n</table>\n\n== Usage\n==== \#{cookbook_name}::default\nTODO: Write usage instructions for each cookbook.\n\ne.g.\nJust include +\#{cookbook_name}+ in your node's +run_list+:\n\n{\n\"name\":\"my_node\",\n\"run_list\": [\n\"recipe[\#{cookbook_name}]\"\n]\n}\n\n== Contributing\nTODO: (optional) If this is a public cookbook, detail the process for contributing. If this is a private cookbook, remove this section.\n\ne.g.\n1. Fork the repository on Github\n2. Create a named feature branch (like `add_component_x`)\n3. Write you change\n4. Write tests for your change (if applicable)\n5. Run the tests, ensuring they all pass\n6. Submit a Pull Request using Github\n\n== License and Authors\nAuthors: TODO: List authors\n"
                when "md","mkd","txt"
                  file.puts "\#{cookbook_name} Cookbook\n\#{'='*\"\#{cookbook_name} Cookbook\".length}\nTODO: Enter the cookbook description here.\n\ne.g.\nThis cookbook makes your favorite breakfast sandwhich.\n\nRequirements\n------------\nTODO: List your cookbook requirements. Be sure to include any requirements this cookbook has on platforms, libraries, other cookbooks, packages, operating systems, etc.\n\ne.g.\n#### packages\n- `toaster` - \#{cookbook_name} needs toaster to brown your bagel.\n\nAttributes\n----------\nTODO: List you cookbook attributes here.\n\ne.g.\n#### \#{cookbook_name}::default\n<table>\n<tr>\n<th>Key</th>\n<th>Type</th>\n<th>Description</th>\n<th>Default</th>\n</tr>\n<tr>\n<td><tt>['\#{cookbook_name}']['bacon']</tt></td>\n<td>Boolean</td>\n<td>whether to include bacon</td>\n<td><tt>true</tt></td>\n</tr>\n</table>\n\nUsage\n-----\n#### \#{cookbook_name}::default\nTODO: Write usage instructions for each cookbook.\n\ne.g.\nJust include `\#{cookbook_name}` in your node's `run_list`:\n\n```json\n{\n\"name\":\"my_node\",\n\"run_list\": [\n\"recipe[\#{cookbook_name}]\"\n]\n}\n```\n\nContributing\n------------\nTODO: (optional) If this is a public cookbook, detail the process for contributing. If this is a private cookbook, remove this section.\n\ne.g.\n1. Fork the repository on Github\n2. Create a named feature branch (like `add_component_x`)\n3. Write you change\n4. Write tests for your change (if applicable)\n5. Run the tests, ensuring they all pass\n6. Submit a Pull Request using Github\n\nLicense and Authors\n-------------------\nAuthors: TODO: List authors\n"
                else
                  file.puts "\#{cookbook_name} Cookbook\n\#{'='*\"\#{cookbook_name} Cookbook\".length}\nTODO: Enter the cookbook description here.\n\ne.g.\nThis cookbook makes your favorite breakfast sandwhich.\n\nRequirements\nTODO: List your cookbook requirements. Be sure to include any requirements this cookbook has on platforms, libraries, other cookbooks, packages, operating systems, etc.\n\ne.g.\ntoaster         \#{cookbook_name} needs toaster to brown your bagel.\n\nAttributes\nTODO: List you cookbook attributes here.\n\n\#{cookbook_name}\nKey                                   Type        Description                           Default\n['\#{cookbook_name}']['bacon']         Boolean     whether to include bacon              true\n\nUsage\n\#{cookbook_name}\nTODO: Write usage instructions for each cookbook.\n\ne.g.\nJust include `\#{cookbook_name}` in your node's `run_list`:\n\n[code]\n{\n\"name\":\"my_node\",\n\"run_list\": [\n\"recipe[\#{cookbook_name}]\"\n]\n}\n[/code]\n\nContributing\nTODO: (optional) If this is a public cookbook, detail the process for contributing. If this is a private cookbook, remove this section.\n\ne.g.\n1. Fork the repository on Github\n2. Create a named feature branch (like `add_component_x`)\n3. Write you change\n4. Write tests for your change (if applicable)\n5. Run the tests, ensuring they all pass\n6. Submit a Pull Request using Github\n\nLicense and Authors\nAuthors: TODO: List authors\n"
                end
              end
            end
          end