beelzebub
Version:
One Hell of a Task Master!
35 lines (28 loc) • 593 B
JavaScript
;
/**
* Running:
* $ bz MyTasks.task1 MyTasks.task2
*
* Output:
* MyTasks task1
* MyTasks task2
*
*/
// simulate loading from a different BZ (for Global vs Local), but still functioanlly the same
const Beelzebub = require('../../');
class MyTasks extends Beelzebub.Tasks {
constructor (config) {
super(config);
this.$setName('MyTasks');
}
task1 () {
this.logger.log('MyTasks task1');
}
task2 () {
this.logger.log('MyTasks task2');
}
_internalFunction () {
this.logger.error('this should be ignored');
}
}
module.exports = MyTasks;