Class: Bl::GitRepo
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 Formatting
colorize_priority, colorize_status, colorize_type
Methods included from Requestable
Constructor Details
Instance Method Details
#list ⇒ Object
11 12 13 14 |
# File 'lib/bl/gitrepo.rb', line 11 def list res = request(:get, @url) print_response(res) end |
#show(id) ⇒ Object
17 18 19 20 |
# File 'lib/bl/gitrepo.rb', line 17 def show(id) res = request(:get, "#{@url}/#{id}") puts formatter.render(res.body, fields: GIT_REPO_FIELDS, vertical: true) end |