pm2/examples/test-all-keymetrics-features/custom_action_with_params.js
2018-05-18 20:17:59 +02:00

23 lines
578 B
JavaScript

var axm = require('@pm2/io');
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});
});