rbovirt 0.0.26 → 0.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +13 -5
- data/lib/client/host_api.rb +11 -0
- data/lib/ovirt/interface.rb +3 -3
- data/lib/ovirt/version.rb +1 -1
- metadata +16 -16
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
NzViNDE4M2QyMDFkNDA5NmU1ZmVmYjY4NWRiZjYyYmQyMDFjMmFhYw==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
OTZmZmM3ZmY3ZDc0NGYzYTMwMGU3OTIwZjExNzE1ZjcyNzZkODVkZg==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
NzI0MTYxYTBkMjUwOWRiNmI3MjliOTc1YWYyZTNkZDcyMmIyMTg3NDZmYjQz
|
10
|
+
YzJmZGM3MzA1ZTdjZGFkNWQ1ZDFjYjRkNDZjOWY2OTk4ZDE5NTVhNGVmNGI1
|
11
|
+
MWRmNzEyM2M2NmE4MWIyZjViYzllZWQzOWM5MDFlNjQ2YjQxY2M=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
M2Q5YTNjZTgyZTlmN2E0MGU5MGNjOTZjOWRiNTk3NjkxOTE5YWE2MDQzYTFk
|
14
|
+
ZDkxZTk4NWJlMzJlMmRmYWMxOWJhMDEyMjI1Njc2NTI0ODRiZWNjMDQxZTY2
|
15
|
+
NWJhYzg2NzBiYjViNTk5N2YyMTYzMTNmNTFjZjYwNzYxZmI0MzY=
|
data/lib/client/host_api.rb
CHANGED
@@ -12,5 +12,16 @@ module OVIRT
|
|
12
12
|
OVIRT::Host::new(self, h)
|
13
13
|
end
|
14
14
|
end
|
15
|
+
|
16
|
+
def approve_host(host_id, opts={})
|
17
|
+
http_post("/hosts/%s/approve" % host_id, "<action></action>")
|
18
|
+
end
|
19
|
+
|
20
|
+
def reinstall_host(host_id, opts={})
|
21
|
+
http_post("/hosts/%s/install" % host_id,
|
22
|
+
"<action><ssh>
|
23
|
+
<authentication_method>PublicKey</authentication_method>
|
24
|
+
</ssh></action>")
|
25
|
+
end
|
15
26
|
end
|
16
27
|
end
|
data/lib/ovirt/interface.rb
CHANGED
@@ -43,11 +43,11 @@ module OVIRT
|
|
43
43
|
@mac = (xml/'mac').first[:address] rescue nil #template interfaces doesn't have MAC address.
|
44
44
|
@interface = (xml/'interface').first.text
|
45
45
|
@network = ((xml/'network').first[:id] rescue nil)
|
46
|
-
@plugged = (xml/'plugged').first.text
|
47
|
-
@linked = (xml/'linked').first.text
|
46
|
+
@plugged = (xml/'plugged').first.text if (xml/'plugged').first
|
47
|
+
@linked = (xml/'linked').first.text if (xml/'linked').first
|
48
48
|
@vm = Link::new(@client, (xml/'vm').first[:id], (xml/'vm').first[:href]) if (xml/'vm') rescue nil
|
49
49
|
@template = Link::new(@client, (xml/'template').first[:id], (xml/'template').first[:href]) rescue nil
|
50
50
|
end
|
51
51
|
|
52
52
|
end
|
53
|
-
end
|
53
|
+
end
|
data/lib/ovirt/version.rb
CHANGED
metadata
CHANGED
@@ -1,55 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbovirt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.27
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amos Benari
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - '>='
|
17
|
+
- - ! '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
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
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rest-client
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - '>='
|
31
|
+
- - ! '>='
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - '>='
|
38
|
+
- - ! '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: shoulda
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - '>='
|
45
|
+
- - ! '>='
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - '>='
|
52
|
+
- - ! '>='
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
@@ -70,18 +70,19 @@ dependencies:
|
|
70
70
|
name: rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - '>='
|
73
|
+
- - ! '>='
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - '>='
|
80
|
+
- - ! '>='
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
|
-
description:
|
84
|
-
|
83
|
+
description: ! ' A Ruby client for oVirt REST API
|
84
|
+
|
85
|
+
'
|
85
86
|
email:
|
86
87
|
- abenari@redhat.com
|
87
88
|
executables: []
|
@@ -139,17 +140,17 @@ require_paths:
|
|
139
140
|
- lib
|
140
141
|
required_ruby_version: !ruby/object:Gem::Requirement
|
141
142
|
requirements:
|
142
|
-
- - '>='
|
143
|
+
- - ! '>='
|
143
144
|
- !ruby/object:Gem::Version
|
144
145
|
version: '0'
|
145
146
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
146
147
|
requirements:
|
147
|
-
- - '>='
|
148
|
+
- - ! '>='
|
148
149
|
- !ruby/object:Gem::Version
|
149
150
|
version: '0'
|
150
151
|
requirements: []
|
151
152
|
rubyforge_project:
|
152
|
-
rubygems_version: 2.
|
153
|
+
rubygems_version: 2.2.2
|
153
154
|
signing_key:
|
154
155
|
specification_version: 4
|
155
156
|
summary: A Ruby client for oVirt REST API
|
@@ -161,4 +162,3 @@ test_files:
|
|
161
162
|
- spec/spec_helper.rb
|
162
163
|
- spec/unit/client_spec.rb
|
163
164
|
- spec/unit/vm_spec.rb
|
164
|
-
has_rdoc:
|