Class: OnlyofficeGithubHelper::GithubClient
- Inherits:
-
Object
- Object
- OnlyofficeGithubHelper::GithubClient
- Defined in:
- lib/onlyoffice_github_helper/github_client.rb
Overview
Basic github client
Instance Method Summary collapse
-
#initialize(config_file: 'config.yml', user: nil, password: nil) ⇒ GithubClient
constructor
A new instance of GithubClient.
Methods included from Tags
Methods included from FileList
#file_list, #file_tree, #parse_tree
Methods included from 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.login = @user_name c.password = @user_password end Octokit.auto_paginate = true end |