Sha256: 47aa414a9abdb7658ac194f1bee1da65d35d110d1dd9b2ab82667679f008f959
Contents?: true
Size: 700 Bytes
Versions: 6
Compression:
Stored size: 700 Bytes
Contents
# # This code handles the creation of the github client with or without an auth token # # This class smells of :reek:UtilityFunction class GithubListerCore class << self # # Everything from here is private # private # # Initialise the client and set auto_paginate to true # def init_client(options = {}) token = get_option(options, :token) client = if token Octokit::Client.new(:access_token => token) else Octokit::Client.new end client.auto_paginate = true client end end end
Version data entries
6 entries across 6 versions & 1 rubygems