something like this then.

require 'rubygems'; require 'rake'; require '../../Rakefile';
Rake::Task['mytask'].execute


---
Met vriendelijke groeten - Best regards - Salutations
Ivan Porto Carrero
GSM: +32.486.787.582
Blog: http://flanders.co.nz
Twitter: http://twitter.com/casualjim
Author of IronRuby in Action (http://manning.com/carrero)



On Thu, Jan 14, 2010 at 10:01 PM, Mohammad Azam <li...@ruby-forum.com>wrote:

> Jim Deville wrote:
> > http://onestepback.org/index.cgi/Tech/Rake/FindInCode.red
>
> I am not sure if the article above is related to my issue.
>
> I want to simply execute a rake task using IronRuby engine in DLR.
>
> I can do this:
>
>  static void Main(string[] args)
>        {
>            var engine = IronRuby.Ruby.CreateEngine();
>             engine.Execute("puts 'hello ironruby'");
>        }
>
> but how can I execute a rake task without using another .rb file.
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Ironruby-core mailing list
> Ironruby-core@rubyforge.org
> http://rubyforge.org/mailman/listinfo/ironruby-core
>
_______________________________________________
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to