Class: GhBbAudit::Github::GithubApi
- Inherits:
-
Object
- Object
- GhBbAudit::Github::GithubApi
- Includes:
- SemanticLogger::Loggable
- Defined in:
- lib/gh_bb_audit/github/github_api.rb
Class Method Summary collapse
Class Method Details
.get_api_accesor ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/gh_bb_audit/github/github_api.rb', line 13 def self.get_api_accesor if !!@user_name && !!@password logger.info("Using Authentication for Github with Username:: #{@user_name}") ::Github.new login: @user_name, password: @password else ::Github.new end end |
.set_user_name_pwd(user_name, password) ⇒ Object
8 9 10 11 |
# File 'lib/gh_bb_audit/github/github_api.rb', line 8 def self.set_user_name_pwd(user_name, password) @user_name = user_name @password = password end |