Sha256: 99bd44374c199bd7c0ed0af88f9e1a6832bc84d8193a485b3cb2e4e429c36351
Contents?: true
Size: 423 Bytes
Versions: 1
Compression:
Stored size: 423 Bytes
Contents
module Octokit module Enterprise module Configuration include Octokit::Configuration CUSTOM_ENDPOINTS = [:api_endpoint, :web_endpoint, :status_api_endpoint] 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 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
octokit-enterprise-0.0.2 | lib/octokit/enterprise/configuration.rb |