Class: StoryOpen
- Includes:
- Story
- Defined in:
- lib/pivotal-github/story_open.rb
Instance Attribute Summary
Attributes inherited from Command
#args, #known_options, #options, #unknown_options
Instance Method Summary collapse
-
#cmd ⇒ Object
Returns a command appropriate for executing at the command line I.e., ‘open www.pivotaltracker.com/story/show/62831853’.
- #run! ⇒ Object
Methods included from Story
#delivered_ids, #delivered_ids_since_last_pr, #fast_log_delivered_text, #git_log_delivered_story_ids, #pr_ids, #story_url
Methods inherited from Command
#initialize, #message, #message_ids, #parse, #parser, run!, #story_branch, #story_id, #story_ids
Constructor Details
This class inherits a constructor from Command
Instance Method Details
#cmd ⇒ Object
Returns a command appropriate for executing at the command line I.e., ‘open www.pivotaltracker.com/story/show/62831853’
9 10 11 |
# File 'lib/pivotal-github/story_open.rb', line 9 def cmd story_ids.map { |id| "open #{story_url(id)}" }.join(' ; ') end |
#run! ⇒ Object
13 14 15 |
# File 'lib/pivotal-github/story_open.rb', line 13 def run! system cmd end |