[Ironruby-core] Executing irake from C#

Ivan Porto Carrero ivan at flanders.co.nz
Thu Jan 14 16:06:32 EST 2010


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 <lists at 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 at rubyforge.org
> http://rubyforge.org/mailman/listinfo/ironruby-core
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20100114/ce5b990f/attachment.html>


More information about the Ironruby-core mailing list