Class: GitPivotalTracker::Info
- Defined in:
- lib/git_pivotal_tracker/info.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from GitPivotalTracker::Base
Instance Method Details
#run! ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/git_pivotal_tracker/info.rb', line 4 def run! return 1 if super unless story_id puts "Branch name must contain a Pivotal Tracker story id" return 1 end puts "URL: #{story.url}" puts "Story: #{story.name}" puts "Description: #{story.description}" notes = story.notes.all.collect(&:text).join("\n") puts "Comments: #{notes}" return 0 end |