Sha256: d7831175b5471f9be551082b4689be1667a84b87f089160afb1e47a7b22318fe

Contents?: true

Size: 642 Bytes

Versions: 3

Compression:

Stored size: 642 Bytes

Contents

# Regrit

Regrit provides an interface for remote repository. This gem is used by awsm to load remote refs and check deploy key installation.

## Usage

    @repo ||= Regrit::RemoteRepo.new(repository_uri, :private_key => deploy_key_private)

    if repo.private_key_required?
      puts "this repo will require a deploy key to retrieve any information"
    end

    if repo.accessible?
      puts "repo is accessible"
    end

    ref_list =
      begin
        repo.refs
      rescue Regrit::Inaccessible
        []
      end

    commit_sha =
      begin
        repo.ref('master')
      rescue Regrit::Inaccessible
        nil
      end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
regrit-0.2.1 README.md
regrit-0.2.0 README.md
regrit-0.1.0 README.md