Class: PTLog::ChangeLog

Inherits:
Object
  • Object
show all
Defined in:
lib/ptlog/change_log.rb

Class Method Summary collapse

Class Method Details

.generateObject

Raises:



14
15
16
17
18
19
20
# File 'lib/ptlog/change_log.rb', line 14

def self.generate
  raise GeneralError, "You have to specify Pivotal token with export PIVOTAL_TOKEN=xyz" unless ENV.has_key?('PIVOTAL_TOKEN')

  controller = PTLog::Controller.new
  template = ERB.new IO.read(File.join(PTLog.templates, 'changelog.erb'))
  template.result(controller.get_binding)
end