Re: [Ironruby-core] Executing irake from C#

2010-01-14 Thread Jim Deville
-boun...@rubyforge.org] On Behalf Of Mohammad Azam Sent: Thursday, January 14, 2010 1:47 PM To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core] Executing irake from C# This works if I create a ruby file and execute it like this: ir something.rb but it does not work using the following code: static

Re: [Ironruby-core] Executing irake from C#

2010-01-14 Thread Jimmy Schementi
ehalf Of Mohammad Azam > Sent: Thursday, January 14, 2010 1:47 PM > To: ironruby-core@rubyforge.org > Subject: Re: [Ironruby-core] Executing irake from C# > > This works if I create a ruby file and execute it like this: > > ir something.rb > > but it does not work using t

Re: [Ironruby-core] Executing irake from C#

2010-01-14 Thread Mohammad Azam
This works if I create a ruby file and execute it like this: ir something.rb but it does not work using the following code: static void Main(string[] args) { var script = @"require 'rubygems' require 'rake' require 'rakefile'; Rake::Task['foo'].execute"; var

Re: [Ironruby-core] Executing irake from C#

2010-01-14 Thread Ivan Porto Carrero
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 IronR

Re: [Ironruby-core] Executing irake from C#

2010-01-14 Thread Mohammad Azam
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 = IronRu

Re: [Ironruby-core] Executing irake from C#

2010-01-14 Thread Jim Deville
-core] Executing irake from C# Jim Deville wrote: > a) irake is meant to be a command line runner, if you are trying to > execute it from C#, then you should be executing a single file that is > a rake application. > b) dev.bat is for developing IronRuby. If you don't like de

Re: [Ironruby-core] Executing irake from C#

2010-01-14 Thread Mohammad Azam
Jim Deville wrote: > a) irake is meant to be a command line runner, if you are trying to > execute it from C#, then you should be executing a single file that is a > rake application. > b) dev.bat is for developing IronRuby. If you don't like dev.bat, and > you just want to use IronRuby, use a r

Re: [Ironruby-core] Executing irake from C#

2010-01-14 Thread Jim Deville
repo. JD -Original Message- From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Mohammad Azam Sent: Thursday, January 14, 2010 12:36 PM To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core] Executing irake from C# call irake foo di

Re: [Ironruby-core] Executing irake from C#

2010-01-14 Thread Mohammad Azam
call irake foo did not work! The reason is that in order to run irake it is required that I run dev.bat first which seems weird and silly! -- Posted via http://www.ruby-forum.com/. ___ Ironruby-core mailing list Ironruby-core@rubyforge.org http:/

Re: [Ironruby-core] Executing irake from C#

2010-01-14 Thread Ivan Porto Carrero
Try with "call irake" On Thursday, January 14, 2010, Mohammad Azam wrote: > How can I execute irake from C#? > >  static void Main(string[] args) >        { >            var engine = IronRuby.Ruby.CreateEngine(); >            engine.Execute("../../rake foo"); >        } > > The above does no

[Ironruby-core] Executing irake from C#

2010-01-14 Thread Mohammad Azam
How can I execute irake from C#? static void Main(string[] args) { var engine = IronRuby.Ruby.CreateEngine(); engine.Execute("../../rake foo"); } The above does not work! -- Posted via http://www.ruby-forum.com/. _