Class: ProjectOpen
- Includes:
- ConfigFiles
- Defined in:
- lib/pivotal-github/project_open.rb
Instance Attribute Summary
Attributes inherited from Command
#args, #known_options, #options, #unknown_options
Instance Method Summary collapse
Methods included from ConfigFiles
#api_token, #config_filename, #project_id
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
11 12 13 |
# File 'lib/pivotal-github/project_open.rb', line 11 def cmd "open #{project_url}" end |
#project_url ⇒ Object
7 8 9 |
# File 'lib/pivotal-github/project_open.rb', line 7 def project_url "https://www.pivotaltracker.com/projects/#{project_id}" end |
#run! ⇒ Object
15 16 17 |
# File 'lib/pivotal-github/project_open.rb', line 15 def run! system cmd end |