You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: index.js
+39-38Lines changed: 39 additions & 38 deletions
Original file line number
Diff line number
Diff line change
@@ -24,8 +24,8 @@ module.exports = function (S) { // Always pass in the ServerlessPlugin Class
24
24
*/
25
25
registerActions(){
26
26
27
-
S.addAction(this._tables.bind(this),{
28
-
handler: 'table',
27
+
S.addAction(this.table.bind(this),{
28
+
handler: 'dynamodbTable',
29
29
description: 'New dynamodb table template',
30
30
context: 'dynamodb',
31
31
contextAction: 'table',
@@ -39,14 +39,14 @@ module.exports = function (S) { // Always pass in the ServerlessPlugin Class
39
39
description: 'Create dynamodb tables and run seeds'
40
40
}]
41
41
});
42
-
S.addAction(this._removeDynamodb.bind(this),{
43
-
handler: 'remove',
42
+
S.addAction(this.remove.bind(this),{
43
+
handler: 'dynamodbRemove',
44
44
description: 'Remove dynamodb local database. This is needed if the installed version is currupted or needs to be upgraded.',
45
45
context: 'dynamodb',
46
46
contextAction: 'remove'
47
47
});
48
-
S.addAction(this._startDynamodb.bind(this),{
49
-
handler: 'start',
48
+
S.addAction(this.start.bind(this),{
49
+
handler: 'dynamodbStart',
50
50
description: 'Start dynamodb local database',
51
51
context: 'dynamodb',
52
52
contextAction: 'start',
@@ -96,49 +96,50 @@ module.exports = function (S) { // Always pass in the ServerlessPlugin Class
96
96
* - You can also access other Project-specific data @ this.S Again, if you mess with data on this object, it could break everything, so make sure you know what you're doing ;)
0 commit comments