Class: Jiminy::Reporting::CIProviders::Local::Configuration

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

Constant Summary

Constants inherited from ProviderConfiguration

ProviderConfiguration::TEMPLATE_METHOD_PROC

Instance Method Summary collapse

Instance Method Details

#github_tokenObject



23
24
25
# File 'lib/jiminy/reporting/ci_providers/local.rb', line 23

def github_token
  ensure_configuration(:github_token)
end

#project_reponameObject



19
20
21
# File 'lib/jiminy/reporting/ci_providers/local.rb', line 19

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

#project_usernameObject



15
16
17
# File 'lib/jiminy/reporting/ci_providers/local.rb', line 15

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

#repo_pathObject



11
12
13
# File 'lib/jiminy/reporting/ci_providers/local.rb', line 11

def repo_path
  ensure_configuration(:repo_path)
end