Module: Gh::Who
Constant Summary collapse
- VERSION =
"0.0.2"
Instance Method Summary collapse
Instance Method Details
#auth_token_file ⇒ Object
16 17 18 |
# File 'lib/gh/who.rb', line 16 def auth_token_file File. "~/.gh-who" end |
#github ⇒ Object
24 25 26 27 |
# File 'lib/gh/who.rb', line 24 def github oauth_token = File.read(auth_token_file) rescue nil Github.new(:oauth_token => oauth_token) end |
#members(organization) ⇒ Object
29 30 31 |
# File 'lib/gh/who.rb', line 29 def members(organization) github.organizations.members.all(organization).map(&:login) end |