-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
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
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
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
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
-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
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
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
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:/
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
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/.
_
11 matches
Mail list logo