Sha256: b53f6f7c4546775ad59886784af68914f40febcb8be1e25cd95c6be0ed70bbbe

Contents?: true

Size: 312 Bytes

Versions: 2

Compression:

Stored size: 312 Bytes

Contents

module Codestatus
  class PackageRepository
    def initialize(github: nil)
      @github = GitHubRepository.new(github) if github
      # bitbucket, gitlab, ...
    end

    attr_reader :github

    def status
      if github
        github.status # default branch's commit's status
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
codestatus-0.1.1 lib/codestatus/package_repository.rb
codestatus-0.1.0 lib/codestatus/package_repository.rb