genprovider
DESCRIPTION:
-
A generator for Ruby based CIM providers Generates Ruby provider templates for use with cmpi-bindings
FEATURES/PROBLEMS:
-
Generates CIM class and provider templates from MOF files
SYNOPSIS:
genprovider.rb [-c] [-d] [-h] [-q] [-t] [-I <includedir>] [-o <output>] [-n <namespace>] <moffile> [<moffile> ...]
* -c generate class files (for method execution)
* -d debug
* -f force, overwrite existing files
* -h this help
* -I <dir> include dir
* -n <namespace> cim namespace, triggers .registration file
* -o <output> output file
* -q quiet no progress output
* -s <style> syntax style (wmi,cim) of input mof
* -t generate test cases (for provider-testing gem)
* <moffiles> file(s) to read (else use $stdin)
EXAMPLE:
# generate .registration and .rb file
bin/genprovider -n root/cimv2 sample.mof
# convert .registration to sfcb .reg file
# copy .reg to /var/lib/sfcb/stage/regs
# copy .mof to /var/lib/sfcb/mofs/<namespace>/
# run sfcbrepos -f
sudo provider-register.sh -t sfcb -n root/cimv2 -r generated/sample.registration -m sample.mof
# copy provider template
cp generated/sample.rb /usr/share/cmpi
# reload sfcb to pick up provider information
sudo rcsfcb restart
REQUIREMENTS:
-
gems:
-
cim
-
mof
-
-
‘cmpi-bindings’ (for provider execution)
INSTALL:
-
gem install genprovider
LICENSE:
(The Ruby License)
Copyright © 2010 Klaus Kämpf <[email protected]>
See www.ruby-lang.org/en/LICENSE.txt for the full text