INNER CODE UNIT · JavaScript
ServerlessDynamodbLocal
99x/serverless-dynamodb-local · index.js:9
class ServerlessDynamodbLocal {
constructor(serverless, options) {
this.serverless = serverless;
this.service = serverless.service;
this.serverlessLog = serverless.cli.log.bind(serverless.cli);
this.config = this.service.custom && this.service.custom.dynamodb || {};
this.options = _.merge({
localPath: serverless.config && path.join(serverless.config.servicePath, '.dynamodb')
},
options
);
this.provider = "aws";
this.commands = {
dynamodb: {
commands: {
migrate: {
lifecycleEvents: ["migrateHandler"],
usage: "Creates local DynamoDB tables from the current Serverless configuration"