Mina: How to do mina rake task invocation if rake task has arguments?

Created on 30 Jun 2015  ·  3Comments  ·  Source: mina-deploy/mina

Hello!

I usually run rake tasks with mina using

# locally 
rake namespace:task
# with mina
mina rake[namespace:task]

But now I have a situation where the raketask accepts arguments

# locally 
rake namespace:task[arg1,arg2]
# with mina (does not work)
mina rake[namespace:task[arg1,arg2]]
#=> Don't know how to build task 'namespace:task[arg1'
# with mina (also does not work)
mina rake[namespace:task["arg1","arg2"]]
#=> Don't know how to build task 'namespace:task[arg1'

How do I pass arguments correctly?
NB, I am using fish shell.

Help wanted

Most helpful comment

Got it!
The comma is obviously messing it up, so I tried escaping it.

mina "rake[namespace:task[arg1\,arg2]]"

All 3 comments

did you maybe try this:

mina 'rake[namespace:task["arg1","arg2"]]'

Tried these two, no luck.
Again, please note that I am using fish shell.

mina 'rake[namespace:task["arg1","arg2"]]'
# => Don't know how to build task 'namespace:task[arg1'

mina "rake[namespace:task['arg1','arg2']]"
#=> Don't know how to build task 'namespace:task[arg1'

Got it!
The comma is obviously messing it up, so I tried escaping it.

mina "rake[namespace:task[arg1\,arg2]]"
Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  ·  3Comments

davidhq picture davidhq  ·  10Comments

sosedoff picture sosedoff  ·  9Comments

Epigene picture Epigene  ·  4Comments

jakoss picture jakoss  ·  3Comments