lib/git-process/github_configuration.rb
#
# Create a GitHub client using username and password specifically.
# Meant to be used to get an OAuth token for "regular" client calls.
#
# @param [Hash] opts the options to create a message with
# @option opts [String] :base_url The base URL to use for the GitHub server
# @option opts [String] :remote_name (#remote_name) The "remote" name to use (e.g., 'origin')
# @option opts [String] :user the username to authenticate with
# @option opts [String] :password (#password) the password to authenticate with
#
Create a GitHub client using username and password specifically.
Meant to be used to get an OAuth token for "regular" client calls.
Create a GitHub client using username and password specifically . Meant to be used to get an OAuth token for " regular " client calls .
def create_pw_client(opts = {})
      usr = opts[:user] || user()
      pw = opts[:password] || password()
      logger.debug { "Creating GitHub client for user #{usr} using BasicAuth w/ password" }
      configure_octokit(opts)
      Octokit::Client.new(:login => usr, :password => pw)
    end
def create_pw_client ( opts = { } ) usr = opts [ :user ] || user ( ) pw = opts [ :password ] || password ( ) logger . debug { "Creating GitHub client for user #{usr} using BasicAuth w/ password" } configure_octokit ( opts ) Octokit :: Client . new ( :login => usr , :password => pw ) end
Create a GitHub client using username and password specifically.
Create a GitHub client using username and password specifically .
opts
None
<not_specific>
opts the options to create a message with
opts the options to create a message with