Class: StoryOpen

Inherits:
Command show all
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

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

#cmdObject

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