mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-23 13:15:14 +09:00
* Adding vsphere-automation gems * Fix bug when ruby < 2.3 Signed-off-by: Carlos Herrera <cherrera@opennebula.io>
This commit is contained in:
1 parent
221636f217
commit
cda36014d5
2 files changed
+14
-1
No files matched your search
@@ -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
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in new issue
Block a user