Class: Commands::Info
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#get, #initialize, #put, #sys
Constructor Details
This class inherits a constructor from Commands::Base
Instance Method Details
#run! ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/commands/info.rb', line 6 def run! super unless story_id put "Branch name must contain a Pivotal Tracker story id" return 1 end put "Story: #{story.name}" put "URL: #{story.url}" put "Description: #{story.description}" return 0 end |