Pull down local or remote repositories to local directories.
npm install checkoutSimple unpacking of repositories to local directories.
``javascript`
checkout({
type: 'git',
url: 'git@github.com:bmeck/ruffian',
destination: 'my-apps/ruffian'
}, function (err) {
console.error(err)
});
`javascript`
checkout({
type: 'tar-stream',
stream: req,
destination: 'my-apps/ruffian'
}, function (err) {
console.error(err)
});
`javascript`
checkout({
type: 'directory',
directory: 'my-repos/ruffian',
destination: 'my-apps/ruffian'
}, function (err) {
console.error(err)
});
`javascript`
checkout({
type: function (description, callback) {
// PERFORM THE CHECKOUT HERE
// @description matches the first argument to checkout
},
}, function (err) {
console.error(err)
})
`javascript``
checkout.handlers.myHandler = function (description, callback) {
// Same as Custom Handler
}