class Popper::Action::Ghe

Public Class Methods

check_params() click to toggle source
Calls superclass method
# File lib/popper/action/ghe.rb, line 14
def self.check_params
  @action_config.respond_to?(:url) && super
end
octkit() click to toggle source
# File lib/popper/action/ghe.rb, line 5
def self.octkit
  Octokit.reset!
  Octokit.configure do |c|
    c.web_endpoint = @action_config.url
    c.api_endpoint = File.join(@action_config.url, "api/v3")
  end
  Octokit::Client.new(:access_token => @action_config.token)
end