Sha256: afd638264792d0f26ecd049ee24b1728902c9da821b790e99d1212f7f7d0f3f4

Contents?: true

Size: 286 Bytes

Versions: 2

Compression:

Stored size: 286 Bytes

Contents

require 'pivotal-github/command'
require 'pivotal-github/config_files'

class ProjectOpen < Command
  include ConfigFiles

  def project_url
    "https://www.pivotaltracker.com/projects/#{project_id}"
  end

  def cmd
    "open #{project_url}"
  end

  def run!
    system cmd
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pivotal-github-1.2.2 lib/pivotal-github/project_open.rb
pivotal-github-1.2.0 lib/pivotal-github/project_open.rb