Class: Bl::Commands::GitRepo
- Inherits:
-
Bl::Command
- Object
- Thor
- Bl::Command
- Bl::Commands::GitRepo
- Defined in:
- lib/bl/commands/gitrepo.rb
Instance Method Summary collapse
-
#initialize ⇒ GitRepo
constructor
A new instance of GitRepo.
- #list ⇒ Object
- #show(id) ⇒ Object
Methods included from Printer
print_response, printable_issues
Methods included from Requestable
Constructor Details
Instance Method Details
#list ⇒ Object
11 12 13 14 |
# File 'lib/bl/commands/gitrepo.rb', line 11 def list res = request(:get, @url) print_response(res, :gitrepo) end |
#show(id) ⇒ Object
17 18 19 20 |
# File 'lib/bl/commands/gitrepo.rb', line 17 def show(id) res = request(:get, "#{@url}/#{id}") print_response(res, :gitrepo) end |