Ferreteria/v0.6/clade/IO/Aspect/Connx/Plug/Shell/Local
Jump to navigation
Jump to search
| ||||||||||||||||
About
- Purpose: a shell connection to the local machine
Thinking
- 2024-11-19 For local connections, we mostly don't need to do anything as far as opening and shutting stuff. I suppose we could have this non-functionality implemented in the base class, and override the nothings with somethings for other connection types, but that doesn't seem like good separation of functionality.
History
Code
interface iLocal extends BaseIface {}
class cLocal extends BaseClass implements iLocal {
// ++ CONFIG ++ //
public function SType() : string { return 'local plug'; }
// -- CONFIG -- //
// ++ ACTION ++ //
public function ActualOpen() : ActionIface { return ActionClass::AsNoOp(); }
public function ActualShut() : ActionIface { return ActionClass::AsNoOp(); }
// -- ACTION -- //
// ++ UI ++ //
public function DescribeInline() : string { return '(local)'; }
// -- UI -- //
}