Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request to Add Config Option #6

Open
jdhankins opened this issue Nov 20, 2015 · 0 comments
Open

Request to Add Config Option #6

jdhankins opened this issue Nov 20, 2015 · 0 comments

Comments

@jdhankins
Copy link

Config option would set result into grunt.config:

if(typeof options.config === "string") {
    grunt.config.set(options.config, str);
}

Sample task config:

scanDeploymentHistory: {
                service: "dynamodb",
                method: 'scan',
                options: {
                    config: "scanDeploymentHistoryRes"
                },
                params: {
                    TableName: "mydeploymenthistory",
                    "FilterExpression": "deploymentId = :val",
                    "ExpressionAttributeValues": {":val": {"S": "test0"}},
                    "ReturnConsumedCapacity": "TOTAL"
                }
            }

Usage:

    grunt.registerTask('testDynamo',
        [
            'aws:scanDeploymentHistory',
            'getScanResult'
        ]);

    grunt.registerTask('getScanResult', function (arg) {
        var res = grunt.config.get('scanDeploymentHistoryRes');
        console.log('res', res);
    });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant