rbovirt 0.0.26 → 0.0.27

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: f83b73f685b025a3afd379705265e116aa525627
4
- data.tar.gz: 5e8efbf70f5709595e2739cecce78d7e4b898774
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NzViNDE4M2QyMDFkNDA5NmU1ZmVmYjY4NWRiZjYyYmQyMDFjMmFhYw==
5
+ data.tar.gz: !binary |-
6
+ OTZmZmM3ZmY3ZDc0NGYzYTMwMGU3OTIwZjExNzE1ZjcyNzZkODVkZg==
5
7
  SHA512:
6
- metadata.gz: 9bd22160aa03f49f81f2c68280a7dce02d0751e06b55ff09f33477f8e507a2e5a2add76e1c4a6f2048c8482490b720618975201dfd44e2dcc8a507bde7aed03a
7
- data.tar.gz: 5d5207f581f19897acc53f3433caa61ce1f47bf09d3c7c71c30ca8e9ba72071bee2b9a93f9abac05ae5f84db2339e3c497a4d533a5994549cc735eb8e228445c
8
+ metadata.gz: !binary |-
9
+ NzI0MTYxYTBkMjUwOWRiNmI3MjliOTc1YWYyZTNkZDcyMmIyMTg3NDZmYjQz
10
+ YzJmZGM3MzA1ZTdjZGFkNWQ1ZDFjYjRkNDZjOWY2OTk4ZDE5NTVhNGVmNGI1
11
+ MWRmNzEyM2M2NmE4MWIyZjViYzllZWQzOWM5MDFlNjQ2YjQxY2M=
12
+ data.tar.gz: !binary |-
13
+ M2Q5YTNjZTgyZTlmN2E0MGU5MGNjOTZjOWRiNTk3NjkxOTE5YWE2MDQzYTFk
14
+ ZDkxZTk4NWJlMzJlMmRmYWMxOWJhMDEyMjI1Njc2NTI0ODRiZWNjMDQxZTY2
15
+ NWJhYzg2NzBiYjViNTk5N2YyMTYzMTNmNTFjZjYwNzYxZmI0MzY=
@@ -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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module OVIRT
2
- VERSION = "0.0.26"
2
+ VERSION = "0.0.27"
3
3
  end
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.26
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-04-10 00:00:00.000000000 Z
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: |2
84
- A Ruby client for oVirt REST API
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.0.14
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: