From abf52b154db3a73cf20665d2238c88b112580152 Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Wed, 14 Nov 2012 16:33:01 -0500 Subject: better CHANGELOG markdown format --- lib/chef/knife/cookbook_create.rb | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'lib/chef') 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. -- cgit v1.2.1