Skip to content

Request to Add Config Option #6

@jdhankins

Description

@jdhankins

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);
    });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions