F #3912: Adding vsphere-automation gems (#4615)

* Adding vsphere-automation gems
* Fix bug when ruby < 2.3

Signed-off-by: Carlos Herrera <cherrera@opennebula.io>
This commit is contained in:
Carlos J. Herrera authored and GitHub committed 2020-04-28 11:54:09 +02:00
1 parent 221636f217
commit cda36014d5
2 files changed
+14 -1

No files matched your search

+5
View File
@@ -51,6 +51,11 @@ else
gem 'rqrcode' # sunstone
end
if RUBY_VERSION >= '2.3'
gem 'vsphere-automation-cis', '~> 0.4.6'
gem 'vsphere-automation-vcenter', '~> 0.4.6'
end
gem 'json' # sunstone, oneflow, cloud, ...
gem 'sqlite3' # quota, onedb
gem 'treetop', '>= 1.6.3' # oneflow
+9 -1
View File
@@ -36,6 +36,14 @@ end
TREETOP = 'treetop --version ">= 1.6.3"'
DEFAULT = DEFAULT_PRE if !defined?(DEFAULT)
VMWARE = ['rbvmomi --version "~> 2.2.0"', 'json']
if defined?(RUBY_VERSION) && RUBY_VERSION>="2.3"
VMWARE.push('vsphere-automation-cis')
VMWARE.push('vsphere-automation-vcenter')
end
GROUPS={
:quota => [SQLITE, 'sequel'],
:sunstone => [RACK, 'sinatra', 'thin', 'memcache-client',
@@ -44,7 +52,7 @@ GROUPS={
:cloud => %w{amazon-ec2 sinatra thin uuidtools curb} << RACK,
:hybrid => %w{configparser azure},
:auth_ldap => LDAP,
:vmware => ['rbvmomi --version "~> 2.2.0"', 'json'],
:vmware => VMWARE,
:oneflow => ['sinatra', TREETOP, 'parse-cron'],
:ec2_hybrid => 'aws-sdk --version "~> 2.5"',
:oca => 'ox',