Class: PTLog::ChangeLog
- Inherits:
-
Object
- Object
- PTLog::ChangeLog
- Defined in:
- lib/ptlog/change_log.rb
Class Method Summary collapse
Class Method Details
.generate ⇒ Object
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 |