F #4163: Added path to rubygems (packages)

(cherry picked from commit 8ff8658672)
This commit is contained in:
Ruben S. Montero committed 2020-02-10 11:54:38 +01:00
1 parent 944f12446d
commit 9a4d34de90
1 file changed
+16
@@ -16,6 +16,22 @@
# limitations under the License. #
# -------------------------------------------------------------------------- #
ONE_LOCATION = ENV['ONE_LOCATION']
if !ONE_LOCATION
RUBY_LIB_LOCATION = '/usr/lib/one/ruby'
GEMS_LOCATION = '/usr/share/one/gems'
else
RUBY_LIB_LOCATION = ONE_LOCATION + '/lib/ruby'
GEMS_LOCATION = ONE_LOCATION + '/share/gems'
end
if File.directory?(GEMS_LOCATION)
Gem.use_paths(GEMS_LOCATION)
end
$LOAD_PATH << RUBY_LIB_LOCATION
require 'net/http'
require 'uri'
require 'json'