I have a large script, the main script is written last in the end of the
file.
I have a condition
from line 520
if (is_version5 == 1)
require ‘FortiManagerWSxmlDriver5_0.rb’
else
require ‘FortiManagerWSxmlDriver.rb’
end
I have two scripts that were generated by wsdl2ruby and I am checking
the version of the product, if it is version 5 to use one script if
other to use the other one, the problem is that rubyscript2exe.rb does
not take it when compile the script, I can not change the location the
main because other things are starting to break.
The question is there a way to make the rubyscript2exe to take these
files as well.
If I put them in the top, the rubyscript2exe take them but then my code
is breaking as I have the same class names in both files.
Any idea how to solve it.
I tried also the load instead of the require, the same issue.
Thanks
Eran
Am Sun, 24 Feb 2013 22:36:20 +0900
schrieb Eran G. [email protected]:
The question is there a way to make the rubyscript2exe to take these
files as well.
rubyscript2exe is unmaintained and outdated since several years. Use
Ocra instead: http://ocra.rubyforge.org/
Maybe this solves your problems.
Vale,
Marvin
It is support windows only, I need for tool for linux.
Eran
Marvin Gülker wrote in post #1098825:
Am Sun, 24 Feb 2013 22:36:20 +0900
schrieb Eran G. [email protected]:
The question is there a way to make the rubyscript2exe to take these
files as well.
rubyscript2exe is unmaintained and outdated since several years. Use
Ocra instead: http://ocra.rubyforge.org/
Maybe this solves your problems.
Vale,
Marvin
I’ve never used rubyscript2exe, but in Ocra if it didn’t pick up a
require I used a method or constant within the required file during a
build, and then it started picking it up. Perhaps that trick would work?