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
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.
This links may help you run command line command into ruby ...
http://zhangxh.net/programming/ruby/6-ways-to-run-shell-commands-in-ruby/
http://stackoverflow.com/questions/2232/calling-bash-commands-from-ruby
http://blog.jayfields.com/2006/06/ruby-kernel-system-exec-and-x.html
%x[command].each do |f|
value = f
end