class Stalkerr::Target::GithubEnterprise

Public Instance Methods

channel() click to toggle source
# File lib/stalkerr/target/github_enterprise.rb, line 7
def channel
  ENV['GITHUB_ENTERPRISE_CHANNEL'] || '#github_enterprise'
end
client() click to toggle source
# File lib/stalkerr/target/github_enterprise.rb, line 11
def client
  if !@client || @client && !@client.token_authenticated?
    @client = Octokit::Client.new(
      access_token: @password,
      api_endpoint: _api_endpoint,
      web_endpoint: _web_endpoint
    )
  end
  @client
end

Private Instance Methods

_api_endpoint() click to toggle source
# File lib/stalkerr/target/github_enterprise.rb, line 29
def _api_endpoint
  ENV['GITHUB_ENTERPRISE_API_ENDPOINT'] ||
    raise(GithubEnterpriseError, 'api endpoint is nil')
end
_web_endpoint() click to toggle source
# File lib/stalkerr/target/github_enterprise.rb, line 24
def _web_endpoint
  ENV['GITHUB_ENTERPRISE_WEB_ENDPOINT'] ||
    raise(GithubEnterpriseError, 'web endpoint is nil')
end