Class: Omnibus::Command::ChangeLog

Inherits:
Base
  • Object
show all
Defined in:
lib/omnibus/cli/changelog.rb

Instance Method Summary collapse

Methods inherited from Base

dispatch, #help, #initialize

Methods included from Logging

included

Constructor Details

This class inherits a constructor from Omnibus::Command::Base

Instance Method Details

#generate(start_ref = nil, end_ref = nil) ⇒ Object



70
71
72
73
74
75
76
77
78
79
80
81
82
# File 'lib/omnibus/cli/changelog.rb', line 70

def generate(start_ref=nil, end_ref=nil)
  @start_ref = start_ref
  @end_ref = end_ref
  diff = if @options[:skip_components]
           Omnibus::EmptyManifestDiff.new
         else
           Omnibus::ManifestDiff.new(old_manifest, new_manifest)
         end

  Omnibus::ChangeLogPrinter.new(ChangeLog.new(starting_revision, ending_revision),
                                diff,
                                @options[:source_path]).print(new_version)
end