Project

mof

0.01
No commit activity in last 3 years
No release in over 3 years
The Managed Object Format (MOF) language used to describe classes and instances of the Common Information Model (CIM). See http://www.dmtf.org/education/mof
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.2
 Project Readme

mof¶ ↑

A parser for the Managed Object Format (MOF) language used to describe classes and instances of the Common Information Model (CIM)

See www.dmtf.org/education/mof

FEATURES/PROBLEMS:¶ ↑

SYNOPSIS:¶ ↑

  • A simple mof reader for validation of MOF files

    require ‘mof’ moffiles, options = Mofparser.argv_handler “moflint”, ARGV options ||= :cim; options ||= [] options.unshift(Pathname.new “.”) options.unshift(Pathname.new “/usr/share/mof/cim-current”)

    moffiles.unshift “qualifiers.mof” unless moffiles.include? “qualifiers.mof”

    parser = Mofparser.new options

    begin

    result = parser.parse moffiles
    

    rescue Exception => e

    parser.error_handler e
    exit 1
    

    end

    result.each do |name,res| puts “/*=============== #{name} ===================*/n”

    puts res
    

    end

REQUIREMENTS:¶ ↑

INSTALL:¶ ↑

gem install cim

LICENSE:¶ ↑

(The Ruby License)

Copyright © 2010 Klaus Kämpf <kkaempf@suse.de>

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