Skip to content
This repository has been archived by the owner on Oct 23, 2021. It is now read-only.

postmodern/pullr

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Pullr

Description

Pullr is a Ruby library for quickly pulling down or updating any Repository. Currently, Pullr supports Git, Mercurial (Hg), SubVersion (SVN) and Rsync. Pullr provides a command-line utility and an API which can be used by other frameworks.

Features

  • Currently supports pulling from:
    • Mercurial (Hg)
    • Git
    • SubVersion (SVN)
    • Rsync

Synopsis

Pull down a repository:

$ pullr git://github.com/evanphx/rubinius.git

Pull down a repository into a specific directory:

$ pullr git://github.com/datamapper/dm-rails.git /home/deploy/dm-rails

Pull down a repository from a generic HTTP URL:

$ pullr http://www.tortall.net/svn/yasm/trunk/yasm -S svn

Update an existing repository:

$ cd yasm
$ pullr -u

Examples

Pull down a repository:

remote = Pullr::RemoteRepository.new(:uri => 'git://github.com/evanphx/rubinius.git')
remote.pull
# => #<Pullr::LocalRepository: ...>

Pull down a repository into a specific directory:

remote = Pullr::RemoteRepository.new(:uri => 'git://github.com/datamapper/dm-rails.git')
remote.pull('/home/deploy/dm-rails')
# => #<Pullr::LocalRepository: ...>

Pull down a repository from a generic HTTP URL:

remote = Pullr::RemoteRepository.new(:uri => 'http://www.tortall.net/svn/yasm/trunk/yasm', :scm => :svn)
remote.pull

Update an existing repository:

local = Pullr::LocalRepository.new(:path => 'yasm')
local.update

Requirements

Install

$ gem install pullr

Copyright

Copyright (c) 2010-2013 Hal Brodigan

See {file:LICENSE.txt} for license information.

About

A Ruby library for quickly pulling down or updating any Repository.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages