Class: OsCtld::UserControl::Supervisor::ClientHandler
- Inherits:
-
Generic::ClientHandler
- Object
- Generic::ClientHandler
- OsCtld::UserControl::Supervisor::ClientHandler
- Defined in:
- lib/osctld/user_control/supervisor.rb
Instance Attribute Summary
Attributes inherited from Generic::ClientHandler
Instance Method Summary collapse
Methods inherited from Generic::ClientHandler
#communicate, #error, #error!, #initialize, #ok, #parse, #reply_error, #reply_ok, #request_stop, #send_data, #send_update, #server_version, #socket
Constructor Details
This class inherits a constructor from OsCtld::Generic::ClientHandler
Instance Method Details
#handle_cmd(req) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/osctld/user_control/supervisor.rb', line 7 def handle_cmd(req) cmd = UserControl::Command.find(req[:cmd].to_sym) error!("Unsupported command '#{req[:cmd]}'") unless cmd cmd.run(opts[:user], req[:opts]) end |
#log_type ⇒ Object
14 15 16 |
# File 'lib/osctld/user_control/supervisor.rb', line 14 def log_type self.class.name end |