genprovider 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) hide show
  1. data/CHANGELOG +8 -0
  2. data/CHANGELOG~ +4 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE +58 -0
  5. data/README.rdoc +50 -0
  6. data/Rakefile +6 -0
  7. data/bin/genprovider +256 -0
  8. data/bin/regprovider +105 -0
  9. data/features/003-create.feature +10 -0
  10. data/features/004-modify.feature +9 -0
  11. data/features/005-delete.feature +7 -0
  12. data/features/datatypes.feature +13 -0
  13. data/features/ensure-format.feature +28 -0
  14. data/features/have-instances.feature +19 -0
  15. data/features/mof/trivial.mof +20 -0
  16. data/features/registration.feature +12 -0
  17. data/features/run-genprovider.feature +10 -0
  18. data/features/show-context.feature +9 -0
  19. data/features/step_definitions/genprovider.rb +52 -0
  20. data/features/step_definitions/mof.rb +3 -0
  21. data/features/step_definitions/registration.rb +21 -0
  22. data/features/step_definitions/wbemcli.rb +58 -0
  23. data/features/support/env.rb +20 -0
  24. data/genprovider.gemspec +36 -0
  25. data/lib/genprovider/class.rb +200 -0
  26. data/lib/genprovider/classinfo.rb +88 -0
  27. data/lib/genprovider/output.rb +104 -0
  28. data/lib/genprovider/provider.rb +721 -0
  29. data/lib/genprovider/rdoc.rb +149 -0
  30. data/lib/genprovider/registration.rb +22 -0
  31. data/lib/genprovider/testcase.rb +139 -0
  32. data/lib/genprovider/version.rb +3 -0
  33. data/lib/genprovider.rb +35 -0
  34. data/samples/mof/LMI_Embedded.mof +6 -0
  35. data/samples/mof/RCP_ArrayDataTypes.mof +27 -0
  36. data/samples/mof/RCP_ClassMethod.mof +7 -0
  37. data/samples/mof/RCP_ComplexMethod.mof +14 -0
  38. data/samples/mof/RCP_IndicationGenerator.mof +13 -0
  39. data/samples/mof/RCP_PassCData.mof +10 -0
  40. data/samples/mof/RCP_ShowContext.mof +11 -0
  41. data/samples/mof/RCP_SimpleClass.mof +7 -0
  42. data/samples/mof/RCP_SimpleDataTypes.mof +27 -0
  43. data/samples/mof/RCP_SimpleMethod.mof +9 -0
  44. data/samples/mof/qualifiers.mof +20 -0
  45. data/samples/provider/lmi_embedded.rb +148 -0
  46. data/samples/provider/rcp_array_data_types.rb +219 -0
  47. data/samples/provider/rcp_class_method.rb +54 -0
  48. data/samples/provider/rcp_complex_method.rb +170 -0
  49. data/samples/provider/rcp_pass_c_data.rb +130 -0
  50. data/samples/provider/rcp_show_context.rb +134 -0
  51. data/samples/provider/rcp_simple_class.rb +124 -0
  52. data/samples/provider/rcp_simple_data_types.rb +152 -0
  53. data/samples/provider/rcp_simple_method.rb +143 -0
  54. data/samples/registration/LMI_Embedded.registration +7 -0
  55. data/samples/registration/RCP_ArrayDataTypes.registration +7 -0
  56. data/samples/registration/RCP_ClassMethod.registration +8 -0
  57. data/samples/registration/RCP_ComplexMethod.registration +8 -0
  58. data/samples/registration/RCP_PassCData.registration +7 -0
  59. data/samples/registration/RCP_ShowContext.registration +7 -0
  60. data/samples/registration/RCP_SimpleDataTypes.registration +7 -0
  61. data/samples/registration/RCP_SimpleMethod.registration +8 -0
  62. data/samples/sfcb.reg/RCP_ComputerSystem.reg +5 -0
  63. data/samples/sfcb.reg/RCP_OSProcess.reg +5 -0
  64. data/samples/sfcb.reg/RCP_OperatingSystem.reg +5 -0
  65. data/samples/sfcb.reg/RCP_PhysicalMemory.reg +5 -0
  66. data/samples/sfcb.reg/RCP_Processor.reg +5 -0
  67. data/samples/sfcb.reg/RCP_RunningOS.reg +5 -0
  68. data/samples/sfcb.reg/RCP_SimpleClass.reg +5 -0
  69. data/samples/sfcb.reg/RCP_UnixProcess.reg +5 -0
  70. data/sfcbd +4 -0
  71. data/stress.sh +4 -0
  72. data/tasks/clean.rake +4 -0
  73. data/tasks/doc.rake +16 -0
  74. data/tasks/features.rake +8 -0
  75. data/tasks/prepstage.rake +16 -0
  76. data/tasks/registration.rake +10 -0
  77. data/tasks/sfcb.rake +3 -0
  78. data/tasks/test.rake +10 -0
  79. data/test/env.rb +23 -0
  80. data/test/helper.rb +23 -0
  81. data/test/mkreg.rb +32 -0
  82. data/test/mof/RCP_ClassMethod.rb +15 -0
  83. data/test/mof/RCP_ComplexMethod.rb +16 -0
  84. data/test/mof/RCP_SimpleMethod.rb +15 -0
  85. data/test/registration.rb +37 -0
  86. data/test/sfcb.rb +94 -0
  87. data/test/test_lmi_embedded.rb +64 -0
  88. data/test/test_rcp_array_data_types.rb +140 -0
  89. data/test/test_rcp_class_method.rb +31 -0
  90. data/test/test_rcp_complex_method.rb +68 -0
  91. data/test/test_rcp_simple_data_types.rb +66 -0
  92. data/test/test_rcp_simple_method.rb +47 -0
  93. data/valgrind +8 -0
  94. metadata +288 -0
metadata ADDED
@@ -0,0 +1,288 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: genprovider
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Klaus Kämpf
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-04-11 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: cim
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: '1.0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '1.0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: mof
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ~>
36
+ - !ruby/object:Gem::Version
37
+ version: '1.0'
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: '1.0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: rdoc
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: rake
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ - !ruby/object:Gem::Dependency
79
+ name: sfcc
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ type: :development
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ - !ruby/object:Gem::Dependency
95
+ name: bundler
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ type: :development
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ - !ruby/object:Gem::Dependency
111
+ name: cucumber
112
+ requirement: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ description: Generates Ruby provider templates for use with cmpi-bindings
127
+ email:
128
+ - kkaempf@suse.de
129
+ executables:
130
+ - genprovider
131
+ - regprovider
132
+ extensions: []
133
+ extra_rdoc_files:
134
+ - README.rdoc
135
+ - CHANGELOG~
136
+ - CHANGELOG
137
+ - LICENSE
138
+ files:
139
+ - CHANGELOG
140
+ - Gemfile
141
+ - LICENSE
142
+ - README.rdoc
143
+ - Rakefile
144
+ - bin/genprovider
145
+ - bin/regprovider
146
+ - features/003-create.feature
147
+ - features/004-modify.feature
148
+ - features/005-delete.feature
149
+ - features/datatypes.feature
150
+ - features/ensure-format.feature
151
+ - features/have-instances.feature
152
+ - features/mof/trivial.mof
153
+ - features/registration.feature
154
+ - features/run-genprovider.feature
155
+ - features/show-context.feature
156
+ - features/step_definitions/genprovider.rb
157
+ - features/step_definitions/mof.rb
158
+ - features/step_definitions/registration.rb
159
+ - features/step_definitions/wbemcli.rb
160
+ - features/support/env.rb
161
+ - genprovider.gemspec
162
+ - lib/genprovider.rb
163
+ - lib/genprovider/class.rb
164
+ - lib/genprovider/classinfo.rb
165
+ - lib/genprovider/output.rb
166
+ - lib/genprovider/provider.rb
167
+ - lib/genprovider/rdoc.rb
168
+ - lib/genprovider/registration.rb
169
+ - lib/genprovider/testcase.rb
170
+ - lib/genprovider/version.rb
171
+ - samples/mof/LMI_Embedded.mof
172
+ - samples/mof/RCP_ArrayDataTypes.mof
173
+ - samples/mof/RCP_ClassMethod.mof
174
+ - samples/mof/RCP_ComplexMethod.mof
175
+ - samples/mof/RCP_IndicationGenerator.mof
176
+ - samples/mof/RCP_PassCData.mof
177
+ - samples/mof/RCP_ShowContext.mof
178
+ - samples/mof/RCP_SimpleClass.mof
179
+ - samples/mof/RCP_SimpleDataTypes.mof
180
+ - samples/mof/RCP_SimpleMethod.mof
181
+ - samples/mof/qualifiers.mof
182
+ - samples/provider/lmi_embedded.rb
183
+ - samples/provider/rcp_array_data_types.rb
184
+ - samples/provider/rcp_class_method.rb
185
+ - samples/provider/rcp_complex_method.rb
186
+ - samples/provider/rcp_pass_c_data.rb
187
+ - samples/provider/rcp_show_context.rb
188
+ - samples/provider/rcp_simple_class.rb
189
+ - samples/provider/rcp_simple_data_types.rb
190
+ - samples/provider/rcp_simple_method.rb
191
+ - samples/registration/LMI_Embedded.registration
192
+ - samples/registration/RCP_ArrayDataTypes.registration
193
+ - samples/registration/RCP_ClassMethod.registration
194
+ - samples/registration/RCP_ComplexMethod.registration
195
+ - samples/registration/RCP_PassCData.registration
196
+ - samples/registration/RCP_ShowContext.registration
197
+ - samples/registration/RCP_SimpleDataTypes.registration
198
+ - samples/registration/RCP_SimpleMethod.registration
199
+ - samples/sfcb.reg/RCP_ComputerSystem.reg
200
+ - samples/sfcb.reg/RCP_OSProcess.reg
201
+ - samples/sfcb.reg/RCP_OperatingSystem.reg
202
+ - samples/sfcb.reg/RCP_PhysicalMemory.reg
203
+ - samples/sfcb.reg/RCP_Processor.reg
204
+ - samples/sfcb.reg/RCP_RunningOS.reg
205
+ - samples/sfcb.reg/RCP_SimpleClass.reg
206
+ - samples/sfcb.reg/RCP_UnixProcess.reg
207
+ - sfcbd
208
+ - stress.sh
209
+ - tasks/clean.rake
210
+ - tasks/doc.rake
211
+ - tasks/features.rake
212
+ - tasks/prepstage.rake
213
+ - tasks/registration.rake
214
+ - tasks/sfcb.rake
215
+ - tasks/test.rake
216
+ - test/env.rb
217
+ - test/helper.rb
218
+ - test/mkreg.rb
219
+ - test/mof/RCP_ClassMethod.rb
220
+ - test/mof/RCP_ComplexMethod.rb
221
+ - test/mof/RCP_SimpleMethod.rb
222
+ - test/registration.rb
223
+ - test/sfcb.rb
224
+ - test/test_lmi_embedded.rb
225
+ - test/test_rcp_array_data_types.rb
226
+ - test/test_rcp_class_method.rb
227
+ - test/test_rcp_complex_method.rb
228
+ - test/test_rcp_simple_data_types.rb
229
+ - test/test_rcp_simple_method.rb
230
+ - valgrind
231
+ - CHANGELOG~
232
+ homepage: https://github.com/kkaempf/genprovider
233
+ licenses: []
234
+ post_install_message:
235
+ rdoc_options: []
236
+ require_paths:
237
+ - lib
238
+ required_ruby_version: !ruby/object:Gem::Requirement
239
+ none: false
240
+ requirements:
241
+ - - ! '>='
242
+ - !ruby/object:Gem::Version
243
+ version: '0'
244
+ required_rubygems_version: !ruby/object:Gem::Requirement
245
+ none: false
246
+ requirements:
247
+ - - ! '>='
248
+ - !ruby/object:Gem::Version
249
+ version: '0'
250
+ requirements:
251
+ - sblim-cmpi-base (for provider-register.sh)
252
+ - sblim-sfcb for testing
253
+ rubyforge_project: genprovider
254
+ rubygems_version: 1.8.23
255
+ signing_key:
256
+ specification_version: 3
257
+ summary: A generator for Ruby based CIM providers
258
+ test_files:
259
+ - features/003-create.feature
260
+ - features/004-modify.feature
261
+ - features/005-delete.feature
262
+ - features/datatypes.feature
263
+ - features/ensure-format.feature
264
+ - features/have-instances.feature
265
+ - features/mof/trivial.mof
266
+ - features/registration.feature
267
+ - features/run-genprovider.feature
268
+ - features/show-context.feature
269
+ - features/step_definitions/genprovider.rb
270
+ - features/step_definitions/mof.rb
271
+ - features/step_definitions/registration.rb
272
+ - features/step_definitions/wbemcli.rb
273
+ - features/support/env.rb
274
+ - test/env.rb
275
+ - test/helper.rb
276
+ - test/mkreg.rb
277
+ - test/mof/RCP_ClassMethod.rb
278
+ - test/mof/RCP_ComplexMethod.rb
279
+ - test/mof/RCP_SimpleMethod.rb
280
+ - test/registration.rb
281
+ - test/sfcb.rb
282
+ - test/test_lmi_embedded.rb
283
+ - test/test_rcp_array_data_types.rb
284
+ - test/test_rcp_class_method.rb
285
+ - test/test_rcp_complex_method.rb
286
+ - test/test_rcp_simple_data_types.rb
287
+ - test/test_rcp_simple_method.rb
288
+ has_rdoc: