Sha256: fb7c56dcf1fe9cb5e93127078aed0c86e0b628fece9142981cc67e0fedace2db
Contents?: true
Size: 769 Bytes
Versions: 1
Compression:
Stored size: 769 Bytes
Contents
# frozen_string_literal: true require 'octokit' require_relative 'event_adapter' require 'roko/source/base/report_events' module Roko module Source module Github # report events from github class ReportEvents < Roko::Source::Base::ReportEvents def client Octokit.configure do |c| c.netrc_file = ENV.fetch( 'NETRC_FILE_PATH', File.expand_path('~/.netrc') ) c.auto_paginate = true end Octokit::Client.new(netrc: true) end def fetch_service_event(client) client.user_events(client.login) end def to_report_event(event) EventAdapter.to_report_event(event) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
roko-0.2.1 | lib/roko/source/github/report_events.rb |