0.0
No commit activity in last 3 years
No release in over 3 years
Generates Ruby provider templates for use with cmpi-bindings
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0

Runtime

~> 1.0
~> 1.0
>= 0
 Project Readme

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 generating .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 <kkaempf@suse.de>

See www.ruby-lang.org/en/LICENSE.txt for the full text