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

How to do mina rake task invocation if rake task has arguments? #325

Closed
Epigene opened this issue Jun 30, 2015 · 3 comments
Closed

How to do mina rake task invocation if rake task has arguments? #325

Epigene opened this issue Jun 30, 2015 · 3 comments

Comments

@Epigene
Copy link

Epigene commented Jun 30, 2015

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.

@d4be4st
Copy link
Member

d4be4st commented Jul 5, 2015

did you maybe try this:

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

@Epigene
Copy link
Author

Epigene commented Jul 6, 2015

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'

@Epigene
Copy link
Author

Epigene commented Jul 6, 2015

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

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

@Epigene Epigene closed this as completed Jul 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants