|
|
@ -8,14 +8,14 @@ var config = require("../../lib/load-config");
|
|
|
|
// but the API requires it, and I don't feel like changing that
|
|
|
|
// but the API requires it, and I don't feel like changing that
|
|
|
|
// --ansuz
|
|
|
|
// --ansuz
|
|
|
|
var FileStorage = require("../../lib/storage/file");
|
|
|
|
var FileStorage = require("../../lib/storage/file");
|
|
|
|
|
|
|
|
|
|
|
|
var tasks;
|
|
|
|
var tasks;
|
|
|
|
nThen(function (w) {
|
|
|
|
nThen(function (w) {
|
|
|
|
Logger.create(config, w(function (_log) {
|
|
|
|
Logger.create(config, w(function (_log) {
|
|
|
|
config.log = _log;
|
|
|
|
config.log = _log;
|
|
|
|
}));
|
|
|
|
}));
|
|
|
|
}).nThen(function (w) {
|
|
|
|
}).nThen(function (w) {
|
|
|
|
FileStorage.create(config, w(function (_store) {
|
|
|
|
FileStorage.create(config, w(function (err, _store) {
|
|
|
|
|
|
|
|
if (err) { throw err; }
|
|
|
|
config.store = _store;
|
|
|
|
config.store = _store;
|
|
|
|
}));
|
|
|
|
}));
|
|
|
|
}).nThen(function (w) {
|
|
|
|
}).nThen(function (w) {
|
|
|
|