lib/git-process/github_configuration.rb
#
# Configures Octokit to use the appropriate URLs for GitHub server.
#
# @param [Hash] opts the options to create a message with
# @option opts [String] :base_url The base URL to use for the GitHub server
#
# @return [void]
#
Configures Octokit to use the appropriate URLs for GitHub server.
Configures Octokit to use the appropriate URLs for GitHub server .
def configure_octokit(opts = {})
      base_url = opts[:base_url] || base_github_api_url_for_remote
      Octokit.configure do |c|
        c.api_endpoint = api_endpoint(base_url)
        c.web_endpoint = web_endpoint(base_url)
        c.faraday_config do |f|
        end
      end
    end
def configure_octokit ( opts = { } ) base_url = opts [ :base_url ] || base_github_api_url_for_remote Octokit . configure do | c | c . api_endpoint = api_endpoint ( base_url ) c . web_endpoint = web_endpoint ( base_url ) c . faraday_config do | f | end end end
Configures Octokit to use the appropriate URLs for GitHub server.
Configures Octokit to use the appropriate URLs for GitHub server .
#f.response :logger
None
void
opts
:base_url The base URL to use for the GitHub server
: base_url The base URL to use for the GitHub server
<not_specific>
opts the options to create a message with
opts the options to create a message with