Class: Popper::Action::Ghe
- Inherits:
-
Git
- Object
- Base
- Git
- Popper::Action::Ghe
show all
- Defined in:
- lib/popper/action/ghe.rb
Class Method Summary
collapse
Methods inherited from Git
task
Methods inherited from Base
action_name, do_action?, next_action, next_run, run
Class Method Details
.check_params ⇒ Object
14
15
16
|
# File 'lib/popper/action/ghe.rb', line 14
def self.check_params
@action_config.respond_to?(:url) && super
end
|
.octkit ⇒ Object
5
6
7
8
9
10
11
12
|
# 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
|