Sha256: f15313c18608e8d0a1b5236ac9a8032289c193826d4ffa7ed0e4d641d8154441
Contents?: true
Size: 1.03 KB
Versions: 7
Compression:
Stored size: 1.03 KB
Contents
# -*- coding: UTF-8 -*- # # Copyright 2014 PagerDuty, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. require 'octokit' module LitaGithub # Github handler common-use Octokit methods module Octo # pull the access token from the config def access_token config.access_token end # set up the Octokit client def setup_octo(_) @@octo ||= Octokit::Client.new(access_token: access_token) @@octo.auto_paginate = true end # object access method for Octokit client def octo @@octo end end end
Version data entries
7 entries across 7 versions & 1 rubygems