pm2/examples/axm/custom_action_with_params.js
2015-02-02 22:03:31 -05:00

23 lines
574 B
JavaScript

var axm = require('pmx');
axm.action('refresh:db', { comment : 'Refresh the database' }, function(reply) {
console.log('Refreshing');
reply({success : true});
});
axm.action('chanme:ladb', { comment : 'Refresh la BIG database' }, function(reply) {
console.log('Refreshing BIG DB');
reply({success : true});
});
axm.action('rm:rf', { comment : 'Delete moi ca plus vite que ca !' }, function(reply) {
console.log('RMING RFING');
reply({success : true});
});
axm.action('rm:roff', function(reply) {
console.log('RMING RFING');
reply({success : true});
});