def create_pw_client(opts = {})
      usr = opts[:user] || user()
      pw = opts[:password] || password()
      remote = opts[:remote_name] || self.remote_name

      logger.info("Authorizing #{usr} to work with #{remote}.")

      configure_octokit(opts)

      Octokit::Client.new(:login => usr, :password => pw)
    end
def create_pw_client(opts = {})
      usr = opts[:user] || user()
      pw = opts[:password] || password()
      remote = opts[:remote_name] || self.remote_name

      logger.info("Authorizing #{usr} to work with #{remote}.")

      configure_octokit(opts)

      Octokit::Client.new(:login => usr, :password => pw)
    end
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

 @return [Octokit::Client] the Octokit client for communicating with GitHub