Class: Jiminy::Reporting::CIProviders::Github::Configuration

Inherits:
ProviderConfiguration show all
Defined in:
lib/jiminy/reporting/ci_providers/github.rb

Constant Summary

Constants inherited from ProviderConfiguration

ProviderConfiguration::TEMPLATE_METHOD_PROC

Instance Method Summary collapse

Instance Method Details

#github_tokenObject



22
23
24
# File 'lib/jiminy/reporting/ci_providers/github.rb', line 22

def github_token
  ensure_configuration(:github_token)
end

#project_reponameObject



18
19
20
# File 'lib/jiminy/reporting/ci_providers/github.rb', line 18

def project_reponame
  repo_path.to_s.split("/").last
end

#project_usernameObject



14
15
16
# File 'lib/jiminy/reporting/ci_providers/github.rb', line 14

def project_username
  repo_path.to_s.split("/").first
end

#repo_pathObject



10
11
12
# File 'lib/jiminy/reporting/ci_providers/github.rb', line 10

def repo_path
  ensure_configuration(:repo_path)
end