Sha256: da7c15a38cae609ed90e8136c99e49befdb4ebc7dfb73a058ef765f1affaa8e7

Contents?: true

Size: 714 Bytes

Versions: 1

Compression:

Stored size: 714 Bytes

Contents

require "codestatus/version"
require "codestatus/build_status"
require "codestatus/cli"
require "codestatus/repository_resolver"
require "codestatus/repository_resolver/user_defined_resolver"
require "codestatus/repository_resolver/rubygems_resolver"
require "codestatus/repository_resolver/npm_resolver"
require "codestatus/package_repository"
require "codestatus/package_repository/github_repository"

module Codestatus
  def self.status(registry:, package:)
    resolver = RepositoryResolver.new(registry: registry, package: package)

    package_repository = resolver.repository

    if package_repository
      package_repository.status
    else
      BuildStatus.new(sha: nil, status: nil)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
codestatus-0.1.1 lib/codestatus.rb