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
+35-33Lines changed: 35 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -23,8 +23,8 @@ module.exports = function (S) { // Always pass in the ServerlessPlugin Class
23
23
*/
24
24
registerActions(){
25
25
26
-
S.addAction(this._tables.bind(this),{
27
-
handler: 'table',
26
+
S.addAction(this.table.bind(this),{
27
+
handler: 'dynamodbTable',
28
28
description: 'New dynamodb table template',
29
29
context: 'dynamodb',
30
30
contextAction: 'table',
@@ -38,14 +38,14 @@ module.exports = function (S) { // Always pass in the ServerlessPlugin Class
38
38
description: 'Create dynamodb tables and run seeds'
39
39
}]
40
40
});
41
-
S.addAction(this._removeDynamodb.bind(this),{
42
-
handler: 'remove',
41
+
S.addAction(this.remove.bind(this),{
42
+
handler: 'dynamodbRemove',
43
43
description: 'Remove dynamodb local database. This is needed if the installed version is currupted or needs to be upgraded.',
44
44
context: 'dynamodb',
45
45
contextAction: 'remove'
46
46
});
47
-
S.addAction(this._startDynamodb.bind(this),{
48
-
handler: 'start',
47
+
S.addAction(this.start.bind(this),{
48
+
handler: 'dynamodbStart',
49
49
description: 'Start dynamodb local database',
50
50
context: 'dynamodb',
51
51
contextAction: 'start',
@@ -95,43 +95,45 @@ module.exports = function (S) { // Always pass in the ServerlessPlugin Class
95
95
* - 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