Permalink
Browse files

Automatically create a CHANGELOG for new cookbooks

  • Loading branch information...
1 parent 50186e0 commit 289272d303096adac17f01f88f04e840b98ee23c @sethvargo sethvargo committed Feb 8, 2014
@@ -0,0 +1,5 @@
+# <%= name %> cookbook CHANGELOG
+This file is used to list changes made in each version of the <%= name %> cookbook.
+
+## v0.1.0 (<%= Time.now.strftime('%Y-%m-%d') %>)
+- Initial release of <%= name %>
@@ -68,6 +68,7 @@ def generate
template 'metadata.rb.erb', target.join('metadata.rb')
template license_file, target.join('LICENSE')
template 'README.md.erb', target.join('README.md')
+ template 'CHANGELOG.md.erb', target.join('CHANGELOG.md')
Berkshelf::InitGenerator.new([target], options.merge(default_options)).invoke_all
end
@@ -46,6 +46,10 @@
contains ' "recipe[sparkle_motion::default]"'
contains 'Author:: YOUR_NAME (<YOUR_EMAIL>)'
end
+ file 'CHANGELOG.md' do
+ contains '# sparkle_motion cookbook CHANGELOG'
+ contains "## v0.1.0 (#{Time.now.strftime('%Y-%m-%d')})"
+ end
file 'metadata.rb' do
contains "name 'sparkle_motion'"
contains "maintainer 'YOUR_NAME'"

0 comments on commit 289272d

Please sign in to comment.