Project

regrit

0.0
No commit activity in last 3 years
No release in over 3 years
Deal with remote git repositories, yo.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.9
~> 2.0

Runtime

>= 0
~> 0.2.1
>= 0
 Project Readme

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