Sha256: f89d1914591bff8e9137c54a4671cf024dd2630d9c1e32f05ef15b0028c11a21

Contents?: true

Size: 594 Bytes

Versions: 6

Compression:

Stored size: 594 Bytes

Contents

# frozen_string_literal: true

require_relative "provider_configuration"

module Jiminy
  module Reporting
    module CIProviders
      module Github
        class Configuration < ProviderConfiguration
          def repo_path
            ensure_configuration(:repo_path)
          end

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

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

          def github_token
            ensure_configuration(:github_token)
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
jiminy-0.4.0 lib/jiminy/reporting/ci_providers/github.rb
jiminy-0.3.0 lib/jiminy/reporting/ci_providers/github.rb
jiminy-0.2.0 lib/jiminy/reporting/ci_providers/github.rb
jiminy-0.1.1 lib/jiminy/reporting/ci_providers/github.rb
jiminy-0.1.0 lib/jiminy/reporting/ci_providers/github.rb
jiminy-0.1.0.pre1 lib/jiminy/reporting/ci_providers/github.rb