class Fog::Rake::GithubReleaseTask

Public Class Methods

new() click to toggle source
# File lib/tasks/github_release_task.rb, line 9
def initialize
  desc "Update the changelog since the last release"
  task(:github_release) do

    File.open('CHANGELOG.md', 'r') do |file|
      file.each_line do |line|
        @current_line = line
         if release_header?
           create_release if !release_exists? && @release
           @release_tag = release_match[1]
           @release = line
         else
           @release << line
         end
      end
    end
  end
end