Sha256: 6704b1c968fc9f3533246fcd953624556e8ffe6439383992580b91a31550fdec
Contents?: true
Size: 543 Bytes
Versions: 1
Compression:
Stored size: 543 Bytes
Contents
require 'octokit' require 'octoauth' module Targit ## # Helper module to load a GitHub API client object module Client private def _client files = @options[:authfile].split(',') || [:default] autosave = @options[:autosave] || true auth = Octoauth.new note: 'targit', files: files, autosave: autosave Octokit::Client.new( access_token: auth.token, api_endpoint: @options[:api_endpoint], web_endpoint: @options[:api_endpoint], auto_paginate: true ) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
targit-1.1.0 | lib/targit/client.rb |