[Bug 705422] New: 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#c0 Summary: ruby-bindings: ruby module must be present in YCP moduledir Classification: openSUSE Product: openSUSE 11.4 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 AssignedTo: dmacvicar@novell.com ReportedBy: jsuchome@novell.com QAContact: jsrain@novell.com Found By: Development Blocker: --- I did not test if there's some way, but I guess currently it is not. Is it possible to import ruby module into ycp, that is located elsewhere than under /usr/share/YaST2/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.
https://bugzilla.novell.com/show_bug.cgi?id=705422
https://bugzilla.novell.com/show_bug.cgi?id=705422#c1
Jiří Suchomel
https://bugzilla.novell.com/show_bug.cgi?id=705422
https://bugzilla.novell.com/show_bug.cgi?id=705422#c2
Klaus Kämpf
https://bugzilla.novell.com/show_bug.cgi?id=705422
https://bugzilla.novell.com/show_bug.cgi?id=705422#c3
Jiří Suchomel
The search path serves as a kind of 'namespace' prefix to prevent clashes of yast-ruby modules with other ruby plugins. yast2-core used to have a "-M" option (similar to -I of C compilers) to specify load pathes for modules. Would that fix this issue ?
I doubt, because the ruby modules need to be available from ycp clients as well. Ideally, I'd expect that ruby module installed at ruby_vendor_dir y_lib/kerberos_client.rb would be available in YaST as import "YLib/kerberos_client" or (with some automatic lower/upper case magic) import "YLib/KerberosClient" -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=705422
https://bugzilla.novell.com/show_bug.cgi?id=705422#c4
--- Comment #4 from Josef Reidinger
https://bugzilla.novell.com/show_bug.cgi?id=705422
https://bugzilla.novell.com/show_bug.cgi?id=705422#c5
--- Comment #5 from Klaus Kämpf
https://bugzilla.novell.com/show_bug.cgi?id=705422
https://bugzilla.novell.com/show_bug.cgi?id=705422#c6
--- Comment #6 from Duncan Mac-Vicar
https://bugzilla.novell.com/show_bug.cgi?id=705422
https://bugzilla.novell.com/show_bug.cgi?id=705422#c7
--- Comment #7 from Jiří Suchomel
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.
https://bugzilla.novell.com/show_bug.cgi?id=705422
https://bugzilla.novell.com/show_bug.cgi?id=705422#c8
Duncan Mac-Vicar
https://bugzilla.novell.com/show_bug.cgi?id=705422
https://bugzilla.novell.com/show_bug.cgi?id=705422#c9
Josef Reidinger
https://bugzilla.novell.com/show_bug.cgi?id=705422
https://bugzilla.novell.com/show_bug.cgi?id=705422#c10
Josef Reidinger
participants (1)
-
bugzilla_noreply@novell.com