0.0.10 • Published 7 years ago

gitlab-runner v0.0.10

Weekly downloads
675
License
WTFPL
Repository
-
Last release
7 years ago

#Using as an executable

##Installing

npm install -g gitlab-runner

##Running

###Server

gitlab-runner-server -p <port>

###Client

gitlab-runner-client -s <server> <command>

#Using as a library

##Installing

npm install --save gitlab-runner

##Use

const runner = require('gitlab-runner')
    , Client = runner.Client
    , Server = runner.Server

new Server().start()            // starts a server at port 8080
new Server(9876).start()        // starts a server at port 9876

// connects to localhost:8080
const client = new Client('localhost:8080')

// enable logs (for debug only, defaults to false)
client.verbose(true)

// runs 'npm install' on server
client.runCommand('npm install')

// runs every command in 'build.sh' on server
client.runFile('build.sh')

// runs 'rsync' in folder '/var/www' of server
client.runCommand('rsync', '/var/www')

// runs 'git pull' in folder '/var/www/site' of server and prints output to console
client.runCommand('rsync', '/var/www/site', console.log)
0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago