Skip to content
Myr

deploy

This file

Path

examples/deploy

35 lines · 615 bytes

Last changed by

docsTj Holowaychukbefore adoption467f574

History of this file

Take it

Initial commitTj Holowaychukbefore adoption672c7d0

lines 1–15
1#!/usr/bin/env node
23/**4 * Module dependencies.5 */67var program = require('../');89program10 .version('0.0.1')11 .option('-C, --chdir <path>', 'change the working directory')12 .option('-c, --config <path>', 'set config path. defaults to ./deploy.conf')13 .option('-T, --no-tests', 'ignore test hook')1415program

docsTj Holowaychukbefore adoption03178dc

line 16why, one step back
16 .command('setup')

Initial commitTj Holowaychukbefore adoption672c7d0

lines 17–35
17 .action(function(){
18 console.log('setup');19 });2021program22 .command('exec <cmd>')23 .action(function(cmd){24 console.log('exec "%s"', cmd);25 });2627program28 .command('*')29 .action(function(env){30 console.log('deploying "%s"', env);31 });3233program.parse(process.argv);3435