class Travis::Tools::Github
def initialize(options = nil)
def initialize(options = nil) @check_token = true @ask_login = proc { raise 'ask_login callback not set' } @after_tokens = proc {} @debug = proc { |_| } @hub_path = ENV['HUB_CONFIG'] || '~/.config/hub' @oauth_paths = ['~/.github-oauth-token'] @composer_path = '~/.composer/config.json' @note = 'temporary token' @git_config_keys = %w[github.token github.oauth-token] @scopes = ['user', 'user:email', 'repo'] # overridden by value from /config options&.each_pair { |k, v| send("#{k}=", v) if respond_to? "#{k}=" } yield self if block_given? end