Sha256: 20e85be60855b95ee56d22826459512effd4038d659faad30dc628131d114ad2
Contents?: true
Size: 932 Bytes
Versions: 3
Compression:
Stored size: 932 Bytes
Contents
# # registration.rb # module Genprovider class Registration def initialize c, namespace, providername, out out.comment.comment "Registration for provider #{providername} of class #{c.class}" out.comment.comment "Generated by 'genprovider' for use with cmpi-bindings-ruby" out.comment.comment "Classname - Namespace - Providername - Libraryname - Capabilities ..." mask = Genprovider.classmask c capabilities = "" if (mask & ASSOCIATION_MASK) != 0 capabilities << " association" # an association provider is also an instance provider mask |= INSTANCE_MASK end capabilities << " instance" if (mask & INSTANCE_MASK) != 0 capabilities << " method" if (mask & METHOD_MASK) != 0 capabilities << " indication" if (mask & INDICATION_MASK) != 0 out.puts "#{c.name} #{namespace} #{providername} rbCmpiProvider#{capabilities}" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
genprovider-0.2.3 | lib/genprovider/registration.rb |
genprovider-0.2.2 | lib/genprovider/registration.rb |
genprovider-0.2.1 | lib/genprovider/registration.rb |