Path: | README.rdoc |
Last Update: | Sat Feb 23 07:19:25 +0000 2019 |
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
require ‘mof’ moffiles, options = Mofparser.argv_handler "moflint", ARGV options[:style] ||= :cim; options[:includes] ||= [] options[:includes].unshift(Pathname.new ".") options[:includes].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
gem install cim
(The Ruby License)
Copyright (c) 2010 Klaus Kämpf <kkaempf@suse.de>
See www.ruby-lang.org/en/LICENSE.txt for the full text