Class: StoryOpen
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/6283185’.
- #run! ⇒ Object
Methods inherited from Command
#initialize, #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/6283185’
7 8 9 10 11 |
# File 'lib/pivotal-github/story_open.rb', line 7 def cmd story_ids.map do |id| "open https://www.pivotaltracker.com/story/show/#{id}" end.join(' ; ') end |
#run! ⇒ Object
13 14 15 |
# File 'lib/pivotal-github/story_open.rb', line 13 def run! system cmd end |