class CookbookRelease::Rake::RepoTask
Public Class Methods
new(opts = {}, &html_block)
click to toggle source
# File lib/cookbook-release.rb, line 14 def initialize(opts = {}, &html_block) desc 'Display raw changelog between branches' task 'changelog:raw', [:sub_dir] do |_, args| git = GitUtilities.new('sub_dir': args['sub_dir']) puts Changelog.new(git, opts).raw end desc 'Display raw changelog between branches with risky commits on top' task 'changelog:raw_priority', [:sub_dir] do |_, args| git = GitUtilities.new(args) git = GitUtilities.new('sub_dir': args['sub_dir']) puts Changelog.new(git, opts).raw_priority end desc 'Display html changelog between branches' task 'changelog:html', [:sub_dir] do |_, args| git = GitUtilities.new('sub_dir': args['sub_dir']) html = Changelog.new(git, opts).html if block_given? html = html_block.call(html) end puts html end desc 'Display html changelog between branches with risky commits on top' task 'changelog:html_priority', [:sub_dir] do |_, args| git = GitUtilities.new('sub_dir': args['sub_dir']) html = Changelog.new(git, opts).html_priority if block_given? html = html_block.call(html) end puts html end desc 'Display markdown changelog between branches' task 'changelog:markdown', [:sub_dir] do |_, args| git = GitUtilities.new('sub_dir': args['sub_dir']) puts Changelog.new(git, opts).markdown end desc 'Display markdown changelog between branches with risky commits on top' task 'changelog:markdown_priority', [:sub_dir] do |_, args| git = GitUtilities.new('sub_dir': args['sub_dir']) puts Changelog.new(git, opts).markdown_priority end desc 'Display markdown changelog between branches with risky commits on top and non-node-only changes separated' task 'changelog:markdown_priority_nodes', [:sub_dir] do |_, args| git = GitUtilities.new('sub_dir': args['sub_dir']) puts Changelog.new(git, opts).markdown_priority_nodes end end