简体   繁体   中英

Can i use rak command inside rake task?

I have install gem rak i want to use rak command inside rake task ...

How may i use that ??

I know how to use it on command prompt ...

This is working fine on command prompt ...

rak RAILS_ENV

to run 'rak' you can either run it as a command, like

 a = `rak asdf`

ref: http://en.wikibooks.org/wiki/Ruby_Programming/Running_Multiple_Processes

or hack into the rak source code and figure out how to call it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM