Class: Fog::Rake::ChangelogTask
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- Fog::Rake::ChangelogTask
- Defined in:
- lib/tasks/changelog_task.rb
Instance Method Summary collapse
-
#initialize ⇒ ChangelogTask
constructor
A new instance of ChangelogTask.
Constructor Details
#initialize ⇒ ChangelogTask
Returns a new instance of ChangelogTask.
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/tasks/changelog_task.rb', line 7 def initialize desc "Update the changelog since the last release" task(:changelog) do @changelog = [] @changelog << release_header process_commits @changelog << "**MVP!** #{mvp}" if mvp @changelog << blank_line add_commits_to_changelog save_changelog end end |