[Ironruby-core] Executing an Ironruby file from a console app.
Ivan Porto Carrero
ivan at flanders.co.nz
Sat Mar 21 18:40:59 EDT 2009
You can set load paths.
var engine = Ruby.CreateEngine();
var context = Ruby.GetExecutionContext(engine);
On Sat, Mar 21, 2009 at 9:33 PM, Paul Cowan <lists at ruby-forum.com> wrote:
> Hi all,
> I have the following ruby code which runs in a console application:
> require File.dirname(__FILE__) + '/lib/horn'
> require File.dirname(__FILE__) + '/lib/dsl'
> The file is named hornbuild.rb.
> The main ruby file has a require directive for this hornbuild.rb like
> require 'hornbuild'
> I then execute the ruby file like this:
> var engine = Ruby.CreateEngine();
> The problem is that I can only get this scenario to work by copying the
> hornbuild.rb file and lib folder into the bin directory of the console
> Can I not put these files in the gems folder or something so they are
> globally accessible.
> If so, how can I achieve this?
> Posted via http://www.ruby-forum.com/.
> Ironruby-core mailing list
> Ironruby-core at rubyforge.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ironruby-core