libvirt 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. data/.gitignore +10 -0
  2. data/.yardopts +3 -0
  3. data/CHANGELOG.md +3 -0
  4. data/Gemfile +12 -0
  5. data/Gemfile.lock +36 -0
  6. data/README.md +83 -0
  7. data/Rakefile +20 -0
  8. data/docs/user_guide.md +259 -0
  9. data/examples/README.md +10 -0
  10. data/examples/create_domain.rb +46 -0
  11. data/examples/print_domain_info.rb +46 -0
  12. data/examples/print_hypervisor_info.rb +40 -0
  13. data/lib/ffi/libvirt/domain_info.rb +12 -0
  14. data/lib/ffi/libvirt/error.rb +25 -0
  15. data/lib/ffi/libvirt/error_functions.rb +21 -0
  16. data/lib/ffi/libvirt/error_types.rb +125 -0
  17. data/lib/ffi/libvirt/functions.rb +363 -0
  18. data/lib/ffi/libvirt/node_info.rb +27 -0
  19. data/lib/ffi/libvirt/storage_pool_info.rb +11 -0
  20. data/lib/ffi/libvirt/storage_volume_info.rb +14 -0
  21. data/lib/ffi/libvirt/types.rb +61 -0
  22. data/lib/ffi/libvirt/util.rb +19 -0
  23. data/lib/ffi/libvirt/version.rb +46 -0
  24. data/lib/ffi/libvirt.rb +29 -0
  25. data/lib/libvirt/collection/abstract_collection.rb +49 -0
  26. data/lib/libvirt/collection/domain_collection.rb +98 -0
  27. data/lib/libvirt/collection/interface_collection.rb +16 -0
  28. data/lib/libvirt/collection/network_collection.rb +58 -0
  29. data/lib/libvirt/collection/node_device_collection.rb +29 -0
  30. data/lib/libvirt/collection/nwfilter_collection.rb +15 -0
  31. data/lib/libvirt/collection/storage_pool_collection.rb +58 -0
  32. data/lib/libvirt/collection/storage_volume_collection.rb +57 -0
  33. data/lib/libvirt/collection.rb +12 -0
  34. data/lib/libvirt/connection.rb +225 -0
  35. data/lib/libvirt/domain.rb +241 -0
  36. data/lib/libvirt/error.rb +91 -0
  37. data/lib/libvirt/exception.rb +19 -0
  38. data/lib/libvirt/network.rb +118 -0
  39. data/lib/libvirt/node.rb +118 -0
  40. data/lib/libvirt/node_device.rb +75 -0
  41. data/lib/libvirt/spec/device/disk.rb +58 -0
  42. data/lib/libvirt/spec/device/emulator.rb +23 -0
  43. data/lib/libvirt/spec/device.rb +8 -0
  44. data/lib/libvirt/spec/domain/os_booting.rb +69 -0
  45. data/lib/libvirt/spec/domain.rb +71 -0
  46. data/lib/libvirt/spec.rb +12 -0
  47. data/lib/libvirt/storage_pool.rb +164 -0
  48. data/lib/libvirt/storage_volume.rb +109 -0
  49. data/lib/libvirt/version.rb +3 -0
  50. data/lib/libvirt.rb +53 -0
  51. data/libvirt.gemspec +27 -0
  52. data/test/libvirt/collection/abstract_collection_test.rb +14 -0
  53. data/test/libvirt/collection/domain_collection_test.rb +122 -0
  54. data/test/libvirt/collection/interface_collection_test.rb +9 -0
  55. data/test/libvirt/collection/network_collection_test.rb +41 -0
  56. data/test/libvirt/collection/node_device_collection_test.rb +24 -0
  57. data/test/libvirt/collection/nwfilter_collection_test.rb +7 -0
  58. data/test/libvirt/collection/storage_pool_collection_test.rb +41 -0
  59. data/test/libvirt/collection/storage_volume_collection_test.rb +86 -0
  60. data/test/libvirt/connection_test.rb +133 -0
  61. data/test/libvirt/domain_test.rb +221 -0
  62. data/test/libvirt/error_test.rb +93 -0
  63. data/test/libvirt/libvirt_test.rb +16 -0
  64. data/test/libvirt/network_test.rb +76 -0
  65. data/test/libvirt/node_device_test.rb +16 -0
  66. data/test/libvirt/node_test.rb +24 -0
  67. data/test/libvirt/spec/devices/disk_test.rb +107 -0
  68. data/test/libvirt/spec/devices/emulator_test.rb +20 -0
  69. data/test/libvirt/spec/domain_test.rb +17 -0
  70. data/test/libvirt/storage_pool_test.rb +133 -0
  71. data/test/libvirt/storage_volume_test.rb +63 -0
  72. data/test/support/xml_assertions.rb +29 -0
  73. data/test/test_helper.rb +23 -0
  74. metadata +219 -0
metadata ADDED
@@ -0,0 +1,219 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: libvirt
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 1
8
+ - 0
9
+ version: 0.1.0
10
+ platform: ruby
11
+ authors:
12
+ - Mitchell Hashimoto
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2010-11-16 00:00:00 -08:00
18
+ default_executable:
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: ffi
22
+ requirement: &id001 !ruby/object:Gem::Requirement
23
+ none: false
24
+ requirements:
25
+ - - ~>
26
+ - !ruby/object:Gem::Version
27
+ segments:
28
+ - 0
29
+ - 6
30
+ - 3
31
+ version: 0.6.3
32
+ type: :runtime
33
+ prerelease: false
34
+ version_requirements: *id001
35
+ - !ruby/object:Gem::Dependency
36
+ name: nokogiri
37
+ requirement: &id002 !ruby/object:Gem::Requirement
38
+ none: false
39
+ requirements:
40
+ - - ~>
41
+ - !ruby/object:Gem::Version
42
+ segments:
43
+ - 1
44
+ - 4
45
+ - 3
46
+ version: 1.4.3
47
+ type: :runtime
48
+ prerelease: false
49
+ version_requirements: *id002
50
+ - !ruby/object:Gem::Dependency
51
+ name: protest
52
+ requirement: &id003 !ruby/object:Gem::Requirement
53
+ none: false
54
+ requirements:
55
+ - - ~>
56
+ - !ruby/object:Gem::Version
57
+ segments:
58
+ - 0
59
+ - 4
60
+ - 0
61
+ version: 0.4.0
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: *id003
65
+ - !ruby/object:Gem::Dependency
66
+ name: mocha
67
+ requirement: &id004 !ruby/object:Gem::Requirement
68
+ none: false
69
+ requirements:
70
+ - - ~>
71
+ - !ruby/object:Gem::Version
72
+ segments:
73
+ - 0
74
+ - 9
75
+ - 8
76
+ version: 0.9.8
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: *id004
80
+ description: A ruby client library providing the raw interface to libvirt via FFI.
81
+ email:
82
+ - mitchell.hashimoto@gmail.com
83
+ executables: []
84
+
85
+ extensions: []
86
+
87
+ extra_rdoc_files: []
88
+
89
+ files:
90
+ - .gitignore
91
+ - .yardopts
92
+ - CHANGELOG.md
93
+ - Gemfile
94
+ - Gemfile.lock
95
+ - README.md
96
+ - Rakefile
97
+ - docs/user_guide.md
98
+ - examples/README.md
99
+ - examples/create_domain.rb
100
+ - examples/print_domain_info.rb
101
+ - examples/print_hypervisor_info.rb
102
+ - lib/ffi/libvirt.rb
103
+ - lib/ffi/libvirt/domain_info.rb
104
+ - lib/ffi/libvirt/error.rb
105
+ - lib/ffi/libvirt/error_functions.rb
106
+ - lib/ffi/libvirt/error_types.rb
107
+ - lib/ffi/libvirt/functions.rb
108
+ - lib/ffi/libvirt/node_info.rb
109
+ - lib/ffi/libvirt/storage_pool_info.rb
110
+ - lib/ffi/libvirt/storage_volume_info.rb
111
+ - lib/ffi/libvirt/types.rb
112
+ - lib/ffi/libvirt/util.rb
113
+ - lib/ffi/libvirt/version.rb
114
+ - lib/libvirt.rb
115
+ - lib/libvirt/collection.rb
116
+ - lib/libvirt/collection/abstract_collection.rb
117
+ - lib/libvirt/collection/domain_collection.rb
118
+ - lib/libvirt/collection/interface_collection.rb
119
+ - lib/libvirt/collection/network_collection.rb
120
+ - lib/libvirt/collection/node_device_collection.rb
121
+ - lib/libvirt/collection/nwfilter_collection.rb
122
+ - lib/libvirt/collection/storage_pool_collection.rb
123
+ - lib/libvirt/collection/storage_volume_collection.rb
124
+ - lib/libvirt/connection.rb
125
+ - lib/libvirt/domain.rb
126
+ - lib/libvirt/error.rb
127
+ - lib/libvirt/exception.rb
128
+ - lib/libvirt/network.rb
129
+ - lib/libvirt/node.rb
130
+ - lib/libvirt/node_device.rb
131
+ - lib/libvirt/spec.rb
132
+ - lib/libvirt/spec/device.rb
133
+ - lib/libvirt/spec/device/disk.rb
134
+ - lib/libvirt/spec/device/emulator.rb
135
+ - lib/libvirt/spec/domain.rb
136
+ - lib/libvirt/spec/domain/os_booting.rb
137
+ - lib/libvirt/storage_pool.rb
138
+ - lib/libvirt/storage_volume.rb
139
+ - lib/libvirt/version.rb
140
+ - libvirt.gemspec
141
+ - test/libvirt/collection/abstract_collection_test.rb
142
+ - test/libvirt/collection/domain_collection_test.rb
143
+ - test/libvirt/collection/interface_collection_test.rb
144
+ - test/libvirt/collection/network_collection_test.rb
145
+ - test/libvirt/collection/node_device_collection_test.rb
146
+ - test/libvirt/collection/nwfilter_collection_test.rb
147
+ - test/libvirt/collection/storage_pool_collection_test.rb
148
+ - test/libvirt/collection/storage_volume_collection_test.rb
149
+ - test/libvirt/connection_test.rb
150
+ - test/libvirt/domain_test.rb
151
+ - test/libvirt/error_test.rb
152
+ - test/libvirt/libvirt_test.rb
153
+ - test/libvirt/network_test.rb
154
+ - test/libvirt/node_device_test.rb
155
+ - test/libvirt/node_test.rb
156
+ - test/libvirt/spec/devices/disk_test.rb
157
+ - test/libvirt/spec/devices/emulator_test.rb
158
+ - test/libvirt/spec/domain_test.rb
159
+ - test/libvirt/storage_pool_test.rb
160
+ - test/libvirt/storage_volume_test.rb
161
+ - test/support/xml_assertions.rb
162
+ - test/test_helper.rb
163
+ has_rdoc: true
164
+ homepage: http://rubygems.org/gems/libvirt
165
+ licenses: []
166
+
167
+ post_install_message:
168
+ rdoc_options: []
169
+
170
+ require_paths:
171
+ - lib
172
+ required_ruby_version: !ruby/object:Gem::Requirement
173
+ none: false
174
+ requirements:
175
+ - - ">="
176
+ - !ruby/object:Gem::Version
177
+ hash: -4129372226300388210
178
+ segments:
179
+ - 0
180
+ version: "0"
181
+ required_rubygems_version: !ruby/object:Gem::Requirement
182
+ none: false
183
+ requirements:
184
+ - - ">="
185
+ - !ruby/object:Gem::Version
186
+ hash: -4129372226300388210
187
+ segments:
188
+ - 0
189
+ version: "0"
190
+ requirements: []
191
+
192
+ rubyforge_project: libvirt
193
+ rubygems_version: 1.3.7
194
+ signing_key:
195
+ specification_version: 3
196
+ summary: A ruby client library providing the raw interface to libvirt via FFI.
197
+ test_files:
198
+ - test/libvirt/collection/abstract_collection_test.rb
199
+ - test/libvirt/collection/domain_collection_test.rb
200
+ - test/libvirt/collection/interface_collection_test.rb
201
+ - test/libvirt/collection/network_collection_test.rb
202
+ - test/libvirt/collection/node_device_collection_test.rb
203
+ - test/libvirt/collection/nwfilter_collection_test.rb
204
+ - test/libvirt/collection/storage_pool_collection_test.rb
205
+ - test/libvirt/collection/storage_volume_collection_test.rb
206
+ - test/libvirt/connection_test.rb
207
+ - test/libvirt/domain_test.rb
208
+ - test/libvirt/error_test.rb
209
+ - test/libvirt/libvirt_test.rb
210
+ - test/libvirt/network_test.rb
211
+ - test/libvirt/node_device_test.rb
212
+ - test/libvirt/node_test.rb
213
+ - test/libvirt/spec/devices/disk_test.rb
214
+ - test/libvirt/spec/devices/emulator_test.rb
215
+ - test/libvirt/spec/domain_test.rb
216
+ - test/libvirt/storage_pool_test.rb
217
+ - test/libvirt/storage_volume_test.rb
218
+ - test/support/xml_assertions.rb
219
+ - test/test_helper.rb