Class: Vpr::CLI
- Inherits:
-
Thor
- Object
- Thor
- Vpr::CLI
- Defined in:
- lib/vpr/cli.rb
Instance Method Summary collapse
- #branch ⇒ Object
- #branches ⇒ Object
- #home ⇒ Object
-
#initialize(args = [], local_options = {}, config = {}) ⇒ CLI
constructor
A new instance of CLI.
- #issues ⇒ Object
- #pull ⇒ Object
- #pulls ⇒ Object
- #search(commit) ⇒ Object
- #version ⇒ Object
- #visit(commit) ⇒ Object
Constructor Details
Instance Method Details
#branch ⇒ Object
39 40 41 |
# File 'lib/vpr/cli.rb', line 39 def branch Launchy.open(url.branch_url) end |
#branches ⇒ Object
34 35 36 |
# File 'lib/vpr/cli.rb', line 34 def branches Launchy.open(url.branches_url) end |
#home ⇒ Object
19 20 21 |
# File 'lib/vpr/cli.rb', line 19 def home Launchy.open(url.home_url) end |
#issues ⇒ Object
29 30 31 |
# File 'lib/vpr/cli.rb', line 29 def issues Launchy.open(url.issues_url) end |
#pull ⇒ Object
44 45 46 |
# File 'lib/vpr/cli.rb', line 44 def pull Launchy.open(url.pull_url) end |
#pulls ⇒ Object
24 25 26 |
# File 'lib/vpr/cli.rb', line 24 def pulls Launchy.open(url.pulls_url) end |
#search(commit) ⇒ Object
54 55 56 |
# File 'lib/vpr/cli.rb', line 54 def search(commit) Launchy.open(url.search_url(commit)) end |
#visit(commit) ⇒ Object
49 50 51 |
# File 'lib/vpr/cli.rb', line 49 def visit(commit) Launchy.open(url.commit_url(commit)) end |