nodemiral-forcetty
Version:
Server Automation for NodeJS over SSH
12 lines (10 loc) • 303 B
JavaScript
var nodemiral = require('../../');
var showPasswd = module.exports = nodemiral.taskList('Understanding Users');
showPasswd.execute('invoke cat', {
command: 'cat /etc/passwd'
}, function(stdout, stderr) {
this.passwd = stdout;
});
showPasswd.print('printing userinfo', {
message: "{{passwd}}"
});