fog-opennebula 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db65af85cc0e022684d3c6eeabf7e8ffc93e15444296298b572fcb832ea155e4
|
4
|
+
data.tar.gz: 5e2221fb90fd8040600b9fe4b8a56e17fd0d51dcee3389667f7da6fab150afa8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f50f1f4050ad16b112a0461789d0753e8562fe2bc6877cb605bec6e7f24d10c632964c8be06c29faaefaa796ebf581c6919c62fac3ac827e91c6b41a163d7fb2
|
7
|
+
data.tar.gz: c67684b4db7dfec7c877c336b4f078fd3fc1bb7500c4b4c89b65d56256a7604a782d08a597296837c31da5c4a11ec48b4f3ec41809f94a1d9177f47056dd1ea1
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Fog::OpenNebula
|
2
2
|
|
3
|
-
[![OpenNebula](https://img.shields.io/badge/one-6.
|
3
|
+
[![OpenNebula](https://img.shields.io/badge/one-6.8-blue.svg?style=flat-square)](https://opennebula.org) [![OpenNebula](https://img.shields.io/badge/one-6.4-blue.svg?style=flat-square)](https://opennebula.org)
|
4
4
|
|
5
5
|
## Description
|
6
6
|
|
@@ -21,6 +21,7 @@ Build the gem from source code
|
|
21
21
|
```bash
|
22
22
|
cd fog-opennebula
|
23
23
|
gem build fog-opennebula.gemspec
|
24
|
+
version=$(ruby -e 'require "./lib/fog/opennebula/version"; puts Fog::OpenNebula::VERSION')
|
24
25
|
gem install fog-opennebula-"$version".gem
|
25
26
|
```
|
26
27
|
|
data/fog-opennebula.gemspec
CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
|
|
21
21
|
|
22
22
|
###### Gem dependencies ######
|
23
23
|
|
24
|
-
s.add_dependency 'fog-core', '
|
24
|
+
s.add_dependency 'fog-core', '~> 2.1'
|
25
25
|
s.add_dependency 'fog-json', '~> 1.1'
|
26
26
|
s.add_dependency 'fog-xml', '~> 0.1'
|
27
27
|
s.add_dependency 'nokogiri', '< 1.13' if RUBY_VERSION < '2.6.0'
|
@@ -10,10 +10,10 @@ module Fog
|
|
10
10
|
vms = []
|
11
11
|
vmpool = ::OpenNebula::VirtualMachinePool.new(client)
|
12
12
|
if filter[:id].nil?
|
13
|
-
vmpool.
|
13
|
+
vmpool.info_search(:extended => true)
|
14
14
|
elsif filter[:id]
|
15
15
|
filter[:id] = filter[:id].to_i if filter[:id].is_a?(String)
|
16
|
-
vmpool.
|
16
|
+
vmpool.info_search(:start_id => filter[:id], :end_id => filter[:id], :extended => true)
|
17
17
|
end
|
18
18
|
|
19
19
|
vmpool.each do |vm|
|
@@ -30,7 +30,8 @@ module Fog
|
|
30
30
|
data['group'] = one['VM']['GNAME'] unless one['VM']['GNAME'].nil?
|
31
31
|
|
32
32
|
unless one['VM']['TEMPLATE'].nil?
|
33
|
-
data['cpu'] = one['VM']['TEMPLATE']['
|
33
|
+
data['cpu'] = one['VM']['TEMPLATE']['CPU'] unless one['VM']['TEMPLATE']['CPU'].nil?
|
34
|
+
data['vcpu'] = one['VM']['TEMPLATE']['VCPU'] unless one['VM']['TEMPLATE']['VCPU'].nil?
|
34
35
|
data['memory'] = one['VM']['TEMPLATE']['MEMORY'] unless one['VM']['TEMPLATE']['MEMORY'].nil?
|
35
36
|
unless one['VM']['TEMPLATE']['NIC'].nil?
|
36
37
|
if one['VM']['TEMPLATE']['NIC'].is_a?(Array)
|
@@ -41,7 +41,8 @@ module Fog
|
|
41
41
|
|
42
42
|
unless one['VM']['TEMPLATE'].nil?
|
43
43
|
temp = one['VM']['TEMPLATE']
|
44
|
-
data['cpu'] = temp['
|
44
|
+
data['cpu'] = temp['CPU'] unless temp['CPU'].nil?
|
45
|
+
data['vcpu'] = temp['VCPU'] unless temp['VCPU'].nil?
|
45
46
|
data['memory'] = temp['MEMORY'] unless temp['MEMORY'].nil?
|
46
47
|
unless temp['NIC'].nil?
|
47
48
|
if one['VM']['TEMPLATE']['NIC'].is_a?(Array)
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fog-opennebula
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Clavijo Coca
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-09-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fog-core
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.1
|
19
|
+
version: '2.1'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 2.1
|
26
|
+
version: '2.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: fog-json
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -220,7 +220,7 @@ homepage: http://github.com/fog/fog-opennebula
|
|
220
220
|
licenses:
|
221
221
|
- MIT
|
222
222
|
metadata: {}
|
223
|
-
post_install_message:
|
223
|
+
post_install_message:
|
224
224
|
rdoc_options: []
|
225
225
|
require_paths:
|
226
226
|
- lib
|
@@ -235,8 +235,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
235
235
|
- !ruby/object:Gem::Version
|
236
236
|
version: '0'
|
237
237
|
requirements: []
|
238
|
-
rubygems_version: 3.
|
239
|
-
signing_key:
|
238
|
+
rubygems_version: 3.3.5
|
239
|
+
signing_key:
|
240
240
|
specification_version: 4
|
241
241
|
summary: Module for the fog gem to support OpenNebula
|
242
242
|
test_files: []
|