libvirt-ext 0.0.0 → 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/libvirt-ext.rb +28 -24
- data/libvirt-ext.gemspec +77 -0
- metadata +75 -24
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.1
|
data/lib/libvirt-ext.rb
CHANGED
@@ -76,10 +76,10 @@ module Libvirt
|
|
76
76
|
enum_fields :comment
|
77
77
|
start_at 0
|
78
78
|
enum do
|
79
|
-
Error '
|
80
|
-
EOF '
|
81
|
-
KeepAlive '
|
82
|
-
Client '
|
79
|
+
Error 'misc I/O Error'
|
80
|
+
EOF 'end-of-file from server'
|
81
|
+
KeepAlive 'keepalive timer triggered'
|
82
|
+
Client 'client requested it'
|
83
83
|
Last '--'
|
84
84
|
end
|
85
85
|
end
|
@@ -88,7 +88,7 @@ module Libvirt
|
|
88
88
|
enum_fields :comment
|
89
89
|
start_at 0
|
90
90
|
enum do
|
91
|
-
Unkown '
|
91
|
+
Unkown 'unknown reason'
|
92
92
|
Last '--'
|
93
93
|
end
|
94
94
|
end
|
@@ -97,7 +97,7 @@ module Libvirt
|
|
97
97
|
enum_fields :comment
|
98
98
|
start_at 0
|
99
99
|
enum do
|
100
|
-
Unkown '
|
100
|
+
Unkown 'unknown reason'
|
101
101
|
Last '--'
|
102
102
|
end
|
103
103
|
end
|
@@ -106,7 +106,7 @@ module Libvirt
|
|
106
106
|
enum_fields :comment
|
107
107
|
start_at 0
|
108
108
|
enum do
|
109
|
-
Unkown '
|
109
|
+
Unkown 'unknown reason'
|
110
110
|
Last '--'
|
111
111
|
end
|
112
112
|
end
|
@@ -115,7 +115,7 @@ module Libvirt
|
|
115
115
|
enum_fields :comment
|
116
116
|
start_at 0
|
117
117
|
enum do
|
118
|
-
Unkown '
|
118
|
+
Unkown 'unknown reason'
|
119
119
|
Last '--'
|
120
120
|
end
|
121
121
|
end
|
@@ -124,7 +124,7 @@ module Libvirt
|
|
124
124
|
enum_fields :comment
|
125
125
|
start_at 0
|
126
126
|
enum do
|
127
|
-
Unkown '
|
127
|
+
Unkown 'unknown reason'
|
128
128
|
Last '--'
|
129
129
|
end
|
130
130
|
end
|
@@ -133,7 +133,7 @@ module Libvirt
|
|
133
133
|
enum_fields :comment
|
134
134
|
start_at 0
|
135
135
|
enum do
|
136
|
-
Unkown '
|
136
|
+
Unkown 'unknown reason'
|
137
137
|
User 'paused on user request'
|
138
138
|
Migration 'paused for offline migration'
|
139
139
|
Save 'paused for save'
|
@@ -151,7 +151,7 @@ module Libvirt
|
|
151
151
|
enum_fields :comment
|
152
152
|
start_at 0
|
153
153
|
enum do
|
154
|
-
Unknown '
|
154
|
+
Unknown 'unknown reason'
|
155
155
|
Booted 'normal startup from boot'
|
156
156
|
Migrated 'migrated from another host'
|
157
157
|
Restored 'restored from a state file'
|
@@ -168,7 +168,7 @@ module Libvirt
|
|
168
168
|
enum_fields :comment
|
169
169
|
start_at 0
|
170
170
|
enum do
|
171
|
-
Unkown '
|
171
|
+
Unkown 'unknown reason'
|
172
172
|
User 'shutting down on user request'
|
173
173
|
Last '--'
|
174
174
|
end
|
@@ -178,30 +178,30 @@ module Libvirt
|
|
178
178
|
enum_fields :comment
|
179
179
|
start_at 0
|
180
180
|
enum do
|
181
|
-
Unkown '
|
181
|
+
Unkown 'unknown reason'
|
182
182
|
Shutdown 'normal shutdown'
|
183
183
|
Destroyed 'forced poweroff'
|
184
184
|
Crashed 'domain crashed'
|
185
185
|
Migrated 'migrated to another host'
|
186
186
|
Saved 'saved to a file'
|
187
187
|
Failed 'domain failed to start'
|
188
|
-
FromSnapshot '
|
188
|
+
FromSnapshot 'restored from a snapshot which was taken while domain was shutoff'
|
189
189
|
Last '--'
|
190
190
|
end
|
191
191
|
end
|
192
192
|
|
193
193
|
class State < Enum
|
194
|
-
enum_fields :
|
194
|
+
enum_fields :comment, :reasons
|
195
195
|
start_at 0
|
196
196
|
enum do
|
197
|
-
Nostate '
|
198
|
-
Running '
|
199
|
-
Blocked '
|
200
|
-
Paused '
|
201
|
-
Shutdown '
|
202
|
-
Shutoff '
|
203
|
-
Crashed '
|
204
|
-
PMSuspended '
|
197
|
+
Nostate 'No state', NostateReason
|
198
|
+
Running 'The domain is running', RunningReason
|
199
|
+
Blocked 'The domain is blocked on resource', BlockedReason
|
200
|
+
Paused 'The domain is paused by user', PausedReason
|
201
|
+
Shutdown 'The domain is being shut down', ShutdownReason
|
202
|
+
Shutoff 'The domain is shut off', ShutoffReason
|
203
|
+
Crashed 'The domain is crashed', CrashedReason
|
204
|
+
PMSuspended 'The domain is suspended by guest power management', PMSuspendedReason
|
205
205
|
Last '--'
|
206
206
|
end
|
207
207
|
|
@@ -215,8 +215,12 @@ module Libvirt
|
|
215
215
|
end
|
216
216
|
end
|
217
217
|
|
218
|
+
def state_reason
|
219
|
+
State[self.state]
|
220
|
+
end
|
221
|
+
|
218
222
|
def inspect
|
219
|
-
state, reason =
|
223
|
+
state, reason = state_reason
|
220
224
|
"#<#{self.class.name}: #{uuid} #{name} #{state.title}[#{reason.title}]>"
|
221
225
|
end
|
222
226
|
end
|
data/libvirt-ext.gemspec
ADDED
@@ -0,0 +1,77 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = "libvirt-ext"
|
8
|
+
s.version = "0.0.1"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Denis Knauf"]
|
12
|
+
s.date = "2013-03-18"
|
13
|
+
s.description = "ruby-libvirt is only a mapped api and unrubish. libvirt-ext extents functionality to be more rubish."
|
14
|
+
s.email = "Denis.Knauf@gmail.com"
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE.txt",
|
17
|
+
"README.md"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".document",
|
21
|
+
"Gemfile",
|
22
|
+
"Gemfile.lock",
|
23
|
+
"LICENSE.txt",
|
24
|
+
"README.md",
|
25
|
+
"Rakefile",
|
26
|
+
"VERSION",
|
27
|
+
"lib/libvirt-ext.rb",
|
28
|
+
"libvirt-ext.gemspec",
|
29
|
+
"test/helper.rb",
|
30
|
+
"test/test_libvirt-ext.rb"
|
31
|
+
]
|
32
|
+
s.homepage = "http://github.com/DenisKnauf/libvirt-ext"
|
33
|
+
s.licenses = ["MIT"]
|
34
|
+
s.require_paths = ["lib"]
|
35
|
+
s.rubygems_version = "1.8.23"
|
36
|
+
s.summary = "Extents ruby-libvirt with usefull functions"
|
37
|
+
|
38
|
+
if s.respond_to? :specification_version then
|
39
|
+
s.specification_version = 3
|
40
|
+
|
41
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
42
|
+
s.add_runtime_dependency(%q<ruby-libvirt>, [">= 0"])
|
43
|
+
s.add_runtime_dependency(%q<enum>, [">= 0"])
|
44
|
+
s.add_runtime_dependency(%q<uuidtools>, [">= 0"])
|
45
|
+
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
46
|
+
s.add_development_dependency(%q<yard>, [">= 0"])
|
47
|
+
s.add_development_dependency(%q<simplecov>, [">= 0"])
|
48
|
+
s.add_development_dependency(%q<rdoc>, [">= 0"])
|
49
|
+
s.add_development_dependency(%q<bundler>, [">= 0"])
|
50
|
+
s.add_development_dependency(%q<jeweler>, [">= 0"])
|
51
|
+
s.add_development_dependency(%q<simplecov>, [">= 0"])
|
52
|
+
else
|
53
|
+
s.add_dependency(%q<ruby-libvirt>, [">= 0"])
|
54
|
+
s.add_dependency(%q<enum>, [">= 0"])
|
55
|
+
s.add_dependency(%q<uuidtools>, [">= 0"])
|
56
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
57
|
+
s.add_dependency(%q<yard>, [">= 0"])
|
58
|
+
s.add_dependency(%q<simplecov>, [">= 0"])
|
59
|
+
s.add_dependency(%q<rdoc>, [">= 0"])
|
60
|
+
s.add_dependency(%q<bundler>, [">= 0"])
|
61
|
+
s.add_dependency(%q<jeweler>, [">= 0"])
|
62
|
+
s.add_dependency(%q<simplecov>, [">= 0"])
|
63
|
+
end
|
64
|
+
else
|
65
|
+
s.add_dependency(%q<ruby-libvirt>, [">= 0"])
|
66
|
+
s.add_dependency(%q<enum>, [">= 0"])
|
67
|
+
s.add_dependency(%q<uuidtools>, [">= 0"])
|
68
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
69
|
+
s.add_dependency(%q<yard>, [">= 0"])
|
70
|
+
s.add_dependency(%q<simplecov>, [">= 0"])
|
71
|
+
s.add_dependency(%q<rdoc>, [">= 0"])
|
72
|
+
s.add_dependency(%q<bundler>, [">= 0"])
|
73
|
+
s.add_dependency(%q<jeweler>, [">= 0"])
|
74
|
+
s.add_dependency(%q<simplecov>, [">= 0"])
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: libvirt-ext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-03-
|
12
|
+
date: 2013-03-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ruby-libvirt
|
16
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,15 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
25
30
|
- !ruby/object:Gem::Dependency
|
26
31
|
name: enum
|
27
|
-
requirement:
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
28
33
|
none: false
|
29
34
|
requirements:
|
30
35
|
- - ! '>='
|
@@ -32,10 +37,15 @@ dependencies:
|
|
32
37
|
version: '0'
|
33
38
|
type: :runtime
|
34
39
|
prerelease: false
|
35
|
-
version_requirements:
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
36
46
|
- !ruby/object:Gem::Dependency
|
37
47
|
name: uuidtools
|
38
|
-
requirement:
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
39
49
|
none: false
|
40
50
|
requirements:
|
41
51
|
- - ! '>='
|
@@ -43,10 +53,15 @@ dependencies:
|
|
43
53
|
version: '0'
|
44
54
|
type: :runtime
|
45
55
|
prerelease: false
|
46
|
-
version_requirements:
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
47
62
|
- !ruby/object:Gem::Dependency
|
48
63
|
name: shoulda
|
49
|
-
requirement:
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
50
65
|
none: false
|
51
66
|
requirements:
|
52
67
|
- - ! '>='
|
@@ -54,10 +69,15 @@ dependencies:
|
|
54
69
|
version: '0'
|
55
70
|
type: :development
|
56
71
|
prerelease: false
|
57
|
-
version_requirements:
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
58
78
|
- !ruby/object:Gem::Dependency
|
59
79
|
name: yard
|
60
|
-
requirement:
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
61
81
|
none: false
|
62
82
|
requirements:
|
63
83
|
- - ! '>='
|
@@ -65,10 +85,15 @@ dependencies:
|
|
65
85
|
version: '0'
|
66
86
|
type: :development
|
67
87
|
prerelease: false
|
68
|
-
version_requirements:
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
69
94
|
- !ruby/object:Gem::Dependency
|
70
95
|
name: simplecov
|
71
|
-
requirement:
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
72
97
|
none: false
|
73
98
|
requirements:
|
74
99
|
- - ! '>='
|
@@ -76,10 +101,15 @@ dependencies:
|
|
76
101
|
version: '0'
|
77
102
|
type: :development
|
78
103
|
prerelease: false
|
79
|
-
version_requirements:
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
80
110
|
- !ruby/object:Gem::Dependency
|
81
111
|
name: rdoc
|
82
|
-
requirement:
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
83
113
|
none: false
|
84
114
|
requirements:
|
85
115
|
- - ! '>='
|
@@ -87,10 +117,15 @@ dependencies:
|
|
87
117
|
version: '0'
|
88
118
|
type: :development
|
89
119
|
prerelease: false
|
90
|
-
version_requirements:
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ! '>='
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
91
126
|
- !ruby/object:Gem::Dependency
|
92
127
|
name: bundler
|
93
|
-
requirement:
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
94
129
|
none: false
|
95
130
|
requirements:
|
96
131
|
- - ! '>='
|
@@ -98,10 +133,15 @@ dependencies:
|
|
98
133
|
version: '0'
|
99
134
|
type: :development
|
100
135
|
prerelease: false
|
101
|
-
version_requirements:
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
138
|
+
requirements:
|
139
|
+
- - ! '>='
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '0'
|
102
142
|
- !ruby/object:Gem::Dependency
|
103
143
|
name: jeweler
|
104
|
-
requirement:
|
144
|
+
requirement: !ruby/object:Gem::Requirement
|
105
145
|
none: false
|
106
146
|
requirements:
|
107
147
|
- - ! '>='
|
@@ -109,10 +149,15 @@ dependencies:
|
|
109
149
|
version: '0'
|
110
150
|
type: :development
|
111
151
|
prerelease: false
|
112
|
-
version_requirements:
|
152
|
+
version_requirements: !ruby/object:Gem::Requirement
|
153
|
+
none: false
|
154
|
+
requirements:
|
155
|
+
- - ! '>='
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: '0'
|
113
158
|
- !ruby/object:Gem::Dependency
|
114
159
|
name: simplecov
|
115
|
-
requirement:
|
160
|
+
requirement: !ruby/object:Gem::Requirement
|
116
161
|
none: false
|
117
162
|
requirements:
|
118
163
|
- - ! '>='
|
@@ -120,7 +165,12 @@ dependencies:
|
|
120
165
|
version: '0'
|
121
166
|
type: :development
|
122
167
|
prerelease: false
|
123
|
-
version_requirements:
|
168
|
+
version_requirements: !ruby/object:Gem::Requirement
|
169
|
+
none: false
|
170
|
+
requirements:
|
171
|
+
- - ! '>='
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
124
174
|
description: ruby-libvirt is only a mapped api and unrubish. libvirt-ext extents functionality
|
125
175
|
to be more rubish.
|
126
176
|
email: Denis.Knauf@gmail.com
|
@@ -138,6 +188,7 @@ files:
|
|
138
188
|
- Rakefile
|
139
189
|
- VERSION
|
140
190
|
- lib/libvirt-ext.rb
|
191
|
+
- libvirt-ext.gemspec
|
141
192
|
- test/helper.rb
|
142
193
|
- test/test_libvirt-ext.rb
|
143
194
|
homepage: http://github.com/DenisKnauf/libvirt-ext
|
@@ -155,7 +206,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
155
206
|
version: '0'
|
156
207
|
segments:
|
157
208
|
- 0
|
158
|
-
hash:
|
209
|
+
hash: 405314991
|
159
210
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
160
211
|
none: false
|
161
212
|
requirements:
|
@@ -164,7 +215,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
164
215
|
version: '0'
|
165
216
|
requirements: []
|
166
217
|
rubyforge_project:
|
167
|
-
rubygems_version: 1.8.
|
218
|
+
rubygems_version: 1.8.23
|
168
219
|
signing_key:
|
169
220
|
specification_version: 3
|
170
221
|
summary: Extents ruby-libvirt with usefull functions
|