// Generated by CoffeeScript 1.6.2 var ConsoleInterface, DocPad, action; DocPad = require(__dirname + '/../lib/docpad'); ConsoleInterface = require(__dirname + '/../lib/interfaces/console'); action = process.argv.slice(1).join(' ').indexOf('deploy') !== -1 ? 'load' : false; DocPad.createInstance({ action: action }, function(err, docpad) { if (err) { return console.log(err.stack); } return new ConsoleInterface({ docpad: docpad }, function(err, consoleInterface) { if (err) { return console.log(err.stack); } return consoleInterface.start(); }); });