Changeset 3011

Show
Ignore:
Timestamp:
11/09/08 05:57:08 (2 months ago)
Author:
kkaempf
Message:

make callbacks per-module, klass isn't passed to the plugin endpoints

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • openwsman/trunk/src/plugins/swig/ruby/rbwsmanplugin.rb

    r3006 r3011  
    88  def self.create_plugin 
    99    Sample.new 
     10  end 
     11  def self.identify context 
     12    STDERR.puts "WsmanPlugin.identify, context #{context}" 
     13  end 
     14  def self.enumerate context, enum_info, status 
     15    STDERR.puts "WsmanPlugin.enumerate, context #{context}, enum_info #{enum_info}" 
     16    STDERR.puts "to #{enum_info.epr_to}, uri #{enum_info.epr_uri}" 
     17    selectors = context.selectors 
     18    STDERR.puts "selectors #{selectors}" 
     19  end 
     20  def self.release context, enum_info, status 
     21    STDERR.puts "WsmanPlugin.release, context #{context}" 
     22  end 
     23  def self.pull context, enum_info, status 
     24    STDERR.puts "WsmanPlugin.pull, op #{op}" 
     25  end 
     26  def self.get op 
     27    STDERR.puts "WsmanPlugin.get, op #{op}" 
     28  end 
     29  def self.custom op 
     30    STDERR.puts "WsmanPlugin.custom, op #{op}" 
     31  end 
     32  def self.put op 
     33    STDERR.puts "WsmanPlugin.put, op #{op}" 
     34  end 
     35  def self.create op 
     36    STDERR.puts "WsmanPlugin.create, op #{op}" 
     37  end 
     38  def self.delete op 
     39    STDERR.puts "WsmanPlugin.delete, op #{op}" 
    1040  end 
    1141  class Sample 
     
    4575      STDERR.puts "WsmanPlugin.delete, op #{op}" 
    4676    end 
     77  end 
    4778end 
    48 end