when you do require 'MyAssembly.dll'

ironruby looks in it's search paths to see if it can find the file in one of
those locations. If it exists it will just load the file with
Assembly.LoadFromPath

Not much magic

You may have to change the trust level in your .net security configuration
to allow network locations but that counts for other .NET stuff too.
---
Met vriendelijke groeten - Best regards - Salutations
Ivan Porto Carrero
Blog: http://flanders.co.nz
Google Wave: portocarrero.i...@googlewave.com
Twitter: http://twitter.com/casualjim
Author of IronRuby in Action (http://manning.com/carrero)



On Wed, Dec 23, 2009 at 6:59 PM, Gordon Marsh <li...@ruby-forum.com> wrote:

> Hi,
>
> I have just got IronRuby up and running. I'm intending on using it with
> Cucumber to test some of the DLLs on our server.
>
> It all seems to have been set up correctly and I have require'd one of
> the DLLs from a location on our server. I have access to the DLL's via a
> shared drive, but they are on a different machine to my own. The DLLs
> sit on the webserver in the bin directory within the wwwroot directory
> of an IIS server. The class interfaces are quite simple, but the DLLs do
> a lot of work calling other services, databases etc.
>
> Now, on my machine, where my test scripts are, if I import one of these
> DLLs using
>
>  require 'mydll.dll'
>
> What does this actually do?
>
>  1) Does it make a copy of the DLL code which I can use but is running
> on my machine? Or;
>  2) Does it reference the DLL on the webserver itself such that I am
> running code on the webserver?
>
> I ask as to test the DLLs effectively they will need to have the same
> resources available to them as on the webserver (access to the DB etc).
> If the code is running on my machine, then I can't test effectively.
>
> Any advice appreciated....
>
> Thanks,
>
> Gordon
> --
> 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