Mailinglist Archive: opensuse-bugs (3517 mails)

< Previous Next >
[Bug 705422] ruby-bindings: ruby module must be present in YCP moduledir

https://bugzilla.novell.com/show_bug.cgi?id=705422

https://bugzilla.novell.com/show_bug.cgi?id=705422#c7


--- Comment #7 from Jiří Suchomel <jsuchome@xxxxxxxx> 2011-09-07 09:35:30 UTC
---
(In reply to comment #6)
Most ruby libraries does not offer the kind of API YCP expects for its modules
just like YaPI perl modules are not the typical perl module.

So a typical .rb file is not useful for YaST. It has to be a file with a
module
containing module methods.

Right for typical files, but could we have extra solution for those rb files
written for YaST++ project?
Currently we expect them to be located in
ruby_vendor_dir/y_lib/kerberos_client.rb so maybe a

import "YLib/KerberosClient" could be able to handle it because of YLib prefix?

Yes, other way is to install something (envelope or just symlimk) into
/usr/share/YaST/modules/YLib, but it would be nicer if we should not have to
care about it at least in case of these special ruby modules.

--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
< Previous Next >