lib/git-process/github_configuration.rb
#
# Determines the URL used for using the GitHub web interface based
# on a "base" URL.
#
# If the "base_url" is not provided, then it assumes that this object
# has a "remote_name" property that it can ask.
#
# @param [String] base_url the base GitHub URL
# @return [String] the GitHub web URL
#
Determines the URL used for using the GitHub web interface based
on a "base" URL.

If the "base_url" is not provided, then it assumes that this object
has a "remote_name" property that it can ask.
Determines the URL used for using the GitHub web interface based on a " base " URL . If the " base_url " is not provided then it assumes that this object has a " remote_name " property that it can ask .
def web_endpoint(base_url = nil)
      base_url ||= base_github_api_url_for_remote
      if /github.com/ !~ base_url
        base_url
      else
        Octokit::Configuration::DEFAULT_WEB_ENDPOINT
      end
    end
def web_endpoint ( base_url = nil ) base_url ||= base_github_api_url_for_remote if / github.com / !~ base_url base_url else Octokit :: Configuration :: DEFAULT_WEB_ENDPOINT end end
Determines the URL used for using the GitHub web interface based
on a "base" URL.
Determines the URL used for using the GitHub web interface based on a " base " URL .
the GitHub web URL
the GitHub web URL
String
base_url
<not_specific>
<not_specific>
base_url the base GitHub URL
base_url the base GitHub URL