class PTLog::ChangeLog

Public Class Methods

generate() click to toggle source
# 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