Sha256: c6c7b99e51ce482259e32e319fae79a081bfd9a6e44ee8f978a0ef27bcf9c2cb

Contents?: true

Size: 996 Bytes

Versions: 4

Compression:

Stored size: 996 Bytes

Contents

#
# Provider RCP_ClassMethod for class RCP_ClassMethod:CIM::Class
#
require 'syslog'

require 'cmpi/provider'

module Cmpi
  #
  # A class method
  #
  class RCP_ClassMethod < MethodProvider
   
    #
    # Provider initialization
    #
    def initialize( name, broker, context )
      @trace_file = STDERR
      super broker
    end
   
    def cleanup( context, terminating )
      @trace_file.puts "cleanup terminating? #{terminating}"
      true
    end
   
    def self.typemap
      {
      }
    end
   
    # Methods
   
    # RCP_ClassMethod: string Classname(...)
    #
    # type information for Classname(...)
    def classname_args; [[],[Cmpi::string, ]] end
    #
    # Input args
    #
    # Additional output args
    #
    def classname( context, reference )
      @trace_file.puts "classname #{context}, #{reference}"
      method_return_value = "RCP_ClassMethod" # string
     
      #  function body goes here
     
      return method_return_value
    end
   
   
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
genprovider-0.2.3 samples/provider/rcp_class_method.rb
genprovider-0.2.2 samples/provider/rcp_class_method.rb
genprovider-0.2.1 samples/provider/rcp_class_method.rb
genprovider-0.2.0 samples/provider/rcp_class_method.rb