Class: IpcAuthpipe::Handler::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/ipcauthpipe/handler.rb

Overview

A basic class that outlines handlers’ API. Right now it features only the single process method that accepts command’s parameters as an argument and goes on with processing the specific handler’s command.

Direct Known Subclasses

Auth, Enumerate, Passwd, Pre

Instance Method Summary collapse

Instance Method Details

#process(request) ⇒ Object

Every handler access command’s parameters as a string argument and should return as a string it’s answer that will be returned back (to STDOUT generally)

Raises:

  • (NotImplementedError)


11
12
13
# File 'lib/ipcauthpipe/handler.rb', line 11

def process(request)
  raise NotImplementedError, 'request processing should be overriden by concrete handlers'
end