Sha256: 515d5e147767574cce079ecb07c934f04cab7da49121a554ac1681f704032cef

Contents?: true

Size: 356 Bytes

Versions: 10

Compression:

Stored size: 356 Bytes

Contents

require 'pivotal-github/command'

class StoryOpen < Command

  # Returns a command appropriate for executing at the command line
  # I.e., 'open https://www.pivotaltracker.com/story/show/62831853'
  def cmd
    story_ids.map do |id|
      "open https://www.pivotaltracker.com/story/show/#{id}"
    end.join(' ; ')
  end

  def run!
    system cmd
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
pivotal-github-1.0.6 lib/pivotal-github/story_open.rb
pivotal-github-1.0.5 lib/pivotal-github/story_open.rb
pivotal-github-1.0.4 lib/pivotal-github/story_open.rb
pivotal-github-1.0.3 lib/pivotal-github/story_open.rb
pivotal-github-1.0.2 lib/pivotal-github/story_open.rb
pivotal-github-1.0.1 lib/pivotal-github/story_open.rb
pivotal-github-1.0.0 lib/pivotal-github/story_open.rb
pivotal-github-0.9.1 lib/pivotal-github/story_open.rb
pivotal-github-0.9.0 lib/pivotal-github/story_open.rb
pivotal-github-0.8.1 lib/pivotal-github/story_open.rb