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:
parent
8cbc0aeab7
commit
b5ab3059b2
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user