From: Michael Guterl Date: 2008-09-20T23:47:22+09:00 Subject: Re: system(" rake db:sample_data:hoop) Hi Janus, On Sat, Sep 20, 2008 at 10:37 AM, janus wrote: > >> It is likely that I won't be able to help further, but if you could >> provide more information that would be great. >> Well maybe I can help. >> What do you mean when you say it does not run on windows vista? >> >> Does ruby segfault? Do you get an exception with a stacktrace? >> >> More specific information will certainly help you to get your problem solved. >> >> Michael Guterl > > Ok, this is challenge I have . I have a file with > ...... > task :hoop => :environment do > system("db :sample_data:remove") > system("db :sample_data:hap") > end > When I do rake db :sample_data:hoop nothing happens, however , when I > do rake db :sample_data:remove and rake db:sample_data:hap, I get the > expected results. > You can find more information by invoking rake with the --trace argument. rake db:sample_data:remove --trace On another note, I've never seen a rake task delimited with a ' :' only with a ':'. You may want to check the code above and remove the space after db. One last thing, I think you can invoke the rake tasks without the need for system. Rake::Task['db:sample_data:remove'].invoke should work if I recall correctly. HTH, Michael Guterl