-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtool.coffee
More file actions
31 lines (27 loc) · 806 Bytes
/
tool.coffee
File metadata and controls
31 lines (27 loc) · 806 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Foundation = null
ArtAws = null
beforeActions = ->
Foundation = require 'art-foundation'
ArtAws = require 'art-aws/Server'
AWS.config.region = 'us-west-2'
ArtAws.config.dynamoDb =
accessKeyId: 'thisIsSomeInvalidKey'
secretAccessKey:'anEquallyInvalidSecret!'
region: 'us-east-1'
endpoint: 'http://localhost:8081'
maxRetries: 5
actions =
listTables: ->
ArtAws.DynamoDb.singleton.listTables()
describeTable:
params: "<table>"
action: (table) ->
ArtAws.DynamoDb.singleton.describeTable table: table
scanTable:
params: "<table>"
action: (table) ->
ArtAws.DynamoDb.singleton.scan table: table
(require 'art-foundation/buildCommander')
actions: actions
package: require './package.json'
beforeActions: beforeActions