Skip to content

Cannot use grunt-deployments in task list #56

@ghost

Description

I have not been able to figure out a way to use db_pull or db_push in a list of tasks because of the need for the "--target=" parameter.

Is there a reason not to use the "standard" grunt task syntax, e.g. task:target?

I solved it for my purposes by modifying db_pull and db_push to use:

var target = grunt.option('target') || (this.args.length >= 0 && this.args[0]) || task_options['target'];

so that --target has precedence but task:target can be used also.

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