1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-24 21:34:01 +03:00

add special cases to install_gems check functionality

This commit is contained in:
Javi Fontan 2011-12-12 18:43:06 +01:00
parent 8cbc0aeab7
commit b5ab3059b2

View File

@ -100,8 +100,14 @@ def installed_gems
end
def try_library(name, error_message)
if GEM_TEST[name.to_s]
lib_test=GEM_TEST[name.to_s]
else
lib_test=name.to_s
end
begin
require name.to_s
require lib_test
rescue LoadError, Exception
STDERR.puts error_message
exit(-1)