Method: GitHubService::Configuration#initialize

Defined in:
lib/git-process/github_configuration.rb

#initialize(git_config, opts = {}) ⇒ String

Returns the OAuth token.

Parameters:

Options Hash (opts):

  • :remote_name (String) — default: #remote_name

    The “remote” name to use (e.g., ‘origin’)

  • :user (String)

    the username to authenticate with

  • :password (String) — default: #password

    the password to authenticate with



38
39
40
41
42
43
# File 'lib/git-process/github_configuration.rb', line 38

def initialize(git_config, opts = {})
  @git_config = git_config
  @user = opts[:user]
  @password = opts[:password]
  @remote_name = opts[:remote_name]
end