node-git-deployor
A git pusher helper in node.
Install
$ npm install --save-dev node-git-deployor
Usage
'use strict'; var pkg = ; var Deployor = ; { var distWorkspace = Deployor; distWorkspace; distWorkspace; distWorkspace; distWorkspace; distWorkspace; } { var srcWorkspace = ; srcWorkspace; srcWorkspace; srcWorkspace; }
API
new Deployor([options])
options
Type: Object
Options to pass to the Deployor.
options.cwd
Type: String
Default: process.cwd()
cwd
of the input folder
options.branch
Type: String
Default: master
The branch to deploy to.
options.orphan
Type: Boolean
Default: false
Setting this to true
will force the use of a orphan branch for the deployment.
- TODO(douglasduteil): confirm this
options.cloneLocation
Type: String
Default: path.join('/', 'tmp', path.basename(process.cwd()))
The path where the temporal deployed file will be cloned.
deployor
Deployor instance deployor.extraCleanUp
- TODO(douglasduteil): document this
deployor.copy
- TODO(douglasduteil): document this
deployor.commit
- TODO(douglasduteil): document this
deployor.tag
- TODO(douglasduteil): document this
deployor.push
- TODO(douglasduteil): document this
Deployor.cloneRepoBranch([options])
- TODO(douglasduteil): document this
License
Copyright © 2014 Douglas Duteil <douglasduteil@gmail.com>
This work is free. You can redistribute it and/or modify it under the
terms of the Do What The Fuck You Want To Public License, Version 2,
as published by Sam Hocevar. See the LICENCE file for more details.