2015-05-09 13:58:18 -04:00
|
|
|
// Stub Seed:
|
|
|
|
// Used for now in browser builds, where filesystem access isn't
|
2018-06-18 21:36:02 +02:00
|
|
|
// available.
|
2018-07-09 08:10:34 -04:00
|
|
|
const StubSeed = (module.exports = function() {});
|
2015-05-09 13:58:18 -04:00
|
|
|
|
2019-06-17 02:14:17 +02:00
|
|
|
const Bluebird = require('bluebird');
|
2015-05-09 13:58:18 -04:00
|
|
|
|
2019-06-17 02:14:17 +02:00
|
|
|
const noSuchMethod = Bluebird.method(function() {
|
2018-07-09 08:10:34 -04:00
|
|
|
throw new Error('Seeds are not supported');
|
2015-05-09 13:58:18 -04:00
|
|
|
});
|
|
|
|
|
|
|
|
StubSeed.prototype = {
|
|
|
|
make: noSuchMethod,
|
2018-07-09 08:10:34 -04:00
|
|
|
run: noSuchMethod,
|
2015-05-09 13:58:18 -04:00
|
|
|
};
|