module Gh::Who

Constants

VERSION

Public Instance Methods

auth_token_file() click to toggle source
# File lib/gh/who.rb, line 16
def auth_token_file
  File.expand_path "~/.gh-who"
end
github() click to toggle source
# 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) click to toggle source
# File lib/gh/who.rb, line 29
def members(organization)
  github.organizations.members.all(organization).map(&:login)
end