mirror of
https://github.com/OpenNebula/one.git
synced 2025-02-03 13:47:01 +03:00
* Ensure base bundled gems are loaded first * Default Ansible opennebula-repository 5.11
This commit is contained in:
parent
c62fe20ecf
commit
13040cb87a
@ -5,7 +5,7 @@
|
||||
###############################################################################
|
||||
|
||||
# OpenNebula repository version
|
||||
opennebula_repository_version: '5.10'
|
||||
opennebula_repository_version: '5.11'
|
||||
|
||||
# Repository of the OpenNebula packages
|
||||
opennebula_repository_base: 'https://downloads.opennebula.io/repo/{{ opennebula_repository_version }}'
|
||||
|
@ -48,6 +48,18 @@ SUNSTONE_ROOT_DIR = File.dirname(__FILE__)
|
||||
if File.directory?(GEMS_LOCATION)
|
||||
Gem.use_paths(GEMS_LOCATION)
|
||||
$LOAD_PATH.reject! {|l| l =~ /(vendor|site)_ruby/ }
|
||||
|
||||
# for some platforms, we redistribute newer base Ruby gems which
|
||||
# should be loaded instead of default ones in the distributions
|
||||
require 'rubygems'
|
||||
|
||||
%w[openssl json].each do |name|
|
||||
begin
|
||||
gem name
|
||||
rescue LoadError
|
||||
# ignore
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
$LOAD_PATH << RUBY_LIB_LOCATION
|
||||
|
Loading…
x
Reference in New Issue
Block a user