Module: Hooker::Repos
Instance Method Summary collapse
Instance Method Details
#list(options) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/hooker/repos.rb', line 4 def list() opts = {} if [:type] opts[:type] = [:type] end if [:org] Hooker.client.organization_repositories([:org], opts) elsif [:user] Hooker.client.repositories([:user], opts) end end |