Module: Octokit::Enterprise::Configuration
- Includes:
- Configuration
- Included in:
- Octokit::Enterprise
- Defined in:
- lib/octokit/enterprise/configuration.rb
Constant Summary collapse
- CUSTOM_ENDPOINTS =
[:api_endpoint, :web_endpoint, :status_api_endpoint]
Instance Method Summary collapse
Instance Method Details
#hostname=(_hostname_) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/octokit/enterprise/configuration.rb', line 8 def hostname=(_hostname_) Octokit.configure do |c| CUSTOM_ENDPOINTS.each do |endpoint| c.send "#{endpoint}=", c.send(endpoint).sub('github.com', _hostname_) end end end |