Class: OnlyofficeGithubHelper::GithubClient

Inherits:
Object
  • Object
show all
Includes:
Branches, FileList, Tags
Defined in:
lib/onlyoffice_github_helper/github_client.rb

Overview

Basic github client

Instance Method Summary collapse

Methods included from Tags

#tags

Methods included from FileList

#file_list, #file_tree, #parse_tree

Methods included from Branches

#branches

Constructor Details

#initialize(config_file: 'config.yml', user: nil, password: nil) ⇒ GithubClient

Returns a new instance of GithubClient.



16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/onlyoffice_github_helper/github_client.rb', line 16

def initialize(config_file: 'config.yml',
               user: nil,
               password: nil)
  @user_name = user
  @user_password = password
  init_github_access(config_file)
  Octokit.configure do |c|
    c. = @user_name
    c.password = @user_password
  end
  Octokit.auto_paginate = true
end