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(branch = nil) ⇒ 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(branch = nil) ⇒ Object
50 51 52 |
# File 'lib/vpr/cli.rb', line 50 def pull(branch = nil) Launchy.open(url.pull_url(branch)) end |
#pulls ⇒ Object
24 25 26 |
# File 'lib/vpr/cli.rb', line 24 def pulls Launchy.open(url.pulls_url) end |
#search(commit) ⇒ Object
60 61 62 |
# File 'lib/vpr/cli.rb', line 60 def search(commit) Launchy.open(url.search_url(commit)) end |
#visit(commit) ⇒ Object
55 56 57 |
# File 'lib/vpr/cli.rb', line 55 def visit(commit) Launchy.open(url.commit_url(commit)) end |