Permalink
Browse files

added upstart to the template mix

  • Loading branch information...
1 parent 6f664c5 commit 5bd47ca6fb720d6ea997166a2a8aad1d22c1ce7d @liangzan committed May 22, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 lib/exporter.js
View
@@ -1,5 +1,6 @@
var winston = require('winston').cli()
- , runit = require('./export/runit');
+ , runit = require('./export/runit')
+ , upstart = require('./export/upstart');
/*
* exporter
@@ -25,9 +26,12 @@ exporter.writeTemplates = function(processes, cmdOptions, callback) {
case 'runit':
return runit.writeTemplates(processes, cmdOptions, callback);
break;
+ case 'upstart':
+ return upstart.writeTemplates(processes, cmdOptions, callback);
+ break;
default:
return callback(new Error('Unknown format. Please select inittab, runit, '
- + 'supervisord or upstart'));
+ + 'supervisord, upstart or monit'));
break;
}
};

0 comments on commit 5bd47ca

Please sign in to comment.