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