UNPKG

nodal

Version:

An API Server and Framework for node.js

31 lines (17 loc) 454 B
'use strict'; const Command = require('cmnd').Command; class DBBootstrapCommand extends Command { constructor() { super('db', 'bootstrap'); } help() { return { description: 'Runs db:drop, db:create, db:prepare, db:migrate, db:seed', }; } run(params, callback) { const bootstrapper = require('../../../core/my/bootstrapper.js'); bootstrapper.bootstrap(callback); } } module.exports = DBBootstrapCommand;