grunt-deployments icon indicating copy to clipboard operation
grunt-deployments copied to clipboard

Cannot use grunt-deployments in task list

Open ghost opened this issue 11 years ago • 2 comments

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.

ghost avatar Jul 30 '14 21:07 ghost

Hey there,

I can not even figure out how to use it within my grunt file. You got a working example for me?

Thanks !:)

SantoDE avatar Nov 29 '14 22:11 SantoDE

+1

v3nt avatar Mar 18 '16 17:03 v3nt