summaryrefslogtreecommitdiff
path: root/lib/chef/knife/cookbook_create.rb
diff options
context:
space:
mode:
authorSeth Vargo <sethvargo@gmail.com>2012-11-14 16:33:01 -0500
committerBryan McLellan <btm@opscode.com>2013-04-18 08:56:49 -0700
commitabf52b154db3a73cf20665d2238c88b112580152 (patch)
tree838a3a2984e3b78a98fc1cb1258fecc0492f527c /lib/chef/knife/cookbook_create.rb
parent3cbb41c4f038e7ee93c2efd08544235ec5ae9ea1 (diff)
downloadchef-abf52b154db3a73cf20665d2238c88b112580152.tar.gz
better CHANGELOG markdown format
Diffstat (limited to 'lib/chef/knife/cookbook_create.rb')
-rw-r--r--lib/chef/knife/cookbook_create.rb11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/chef/knife/cookbook_create.rb b/lib/chef/knife/cookbook_create.rb
index 1e6797e4e3..4e6b8d0c1f 100644
--- a/lib/chef/knife/cookbook_create.rb
+++ b/lib/chef/knife/cookbook_create.rb
@@ -185,13 +185,14 @@ EOH
unless File.exists?(File.join(dir,cookbook_name,'CHANGELOG.md'))
open(File.join(dir, cookbook_name, 'CHANGELOG.md'),'w') do |file|
file.puts <<-EOH
-# CHANGELOG for #{cookbook_name}
+#{cookbook_name} CHANGELOG
+#{'='*"#{cookbook_name} CHANGELOG".length}
-This file is used to list changes made in each version of #{cookbook_name}.
+This file is used to list changes made in each version of the #{cookbook_name} cookbook.
-## 0.1.0:
-
-* Initial release of #{cookbook_name}
+0.1.0
+-----
+- [your_name] - Initial release of #{cookbook_name}
- - -
Check the [Markdown Syntax Guide](http://daringfireball.net/projects/markdown/syntax) for help with Markdown.