Class: Fog::Rake::ChangelogTask

Inherits:
Rake::TaskLib
  • Object
show all
Defined in:
lib/tasks/changelog_task.rb

Instance Method Summary collapse

Constructor Details

#initializeChangelogTask

Returns a new instance of ChangelogTask.



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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
    ::Rake::Task[:github_release].invoke
  end
end