replicator/lib/ruby/plugin.rb
# Execute the operation with appropriate error checking. 
Execute the operation with appropriate error checking.
Execute the operation with appropriate error checking .
def ct_exec
    trace "Operation: #{@operation}\n"
    trace "Config: #{@config_file}\n"
    trace "Args: #{@args}\n"
    case @operation
    when "prepare" 
      plugin_prepare
    when "release" 
      plugin_release
    when "configure" 
      plugin_configure
    when "install" 
      plugin_install
    when "uninstall" 
      plugin_uninstall
    when "provision" 
      plugin_provision
    when "online" 
      plugin_online
    when "offline" 
      plugin_offline
    when "offline-deferred" 
      plugin_offline_deferred
    when "halt" 
      plugin_halt
    when "kill" 
      plugin_kill
    when "flush" 
      plugin_flush
    when "waitevent" 
      plugin_waitevent
    when "setrole" 
      plugin_setrole
    when "capabilities" 
      plugin_capabilities
    when "status" 
      plugin_status
    else
      raise UserError, "Unknown operation: #{@operation}"
    end
  end
def ct_exec trace "Operation: #{@operation}\n" trace "Config: #{@config_file}\n" trace "Args: #{@args}\n" case @operation when "prepare" plugin_prepare when "release" plugin_release when "configure" plugin_configure when "install" plugin_install when "uninstall" plugin_uninstall when "provision" plugin_provision when "online" plugin_online when "offline" plugin_offline when "offline-deferred" plugin_offline_deferred when "halt" plugin_halt when "kill" plugin_kill when "flush" plugin_flush when "waitevent" plugin_waitevent when "setrole" plugin_setrole when "capabilities" plugin_capabilities when "status" plugin_status else raise UserError , "Unknown operation: #{@operation}" end end
Execute the operation with appropriate error checking.
Execute the operation with appropriate error checking .
# Print trace information.  # Dispatch on the command. 