Files
hestiacp/func_ruby/ext-modules/empty_module.mod

32 lines
537 B
Modula-2
Raw Normal View History

2024-12-03 21:44:39 +03:00
#!/opt/brepo/ruby33/bin/ruby
class EmptyWorker < Kernel::ModuleCoreWorker
MODULE_ID = "empty_module"
def info
{
ID: 3,
NAME: MODULE_ID,
DESCR: "Just empty module for storing max module id",
REQ: "",
2024-12-09 23:55:35 +03:00
CONF: "",
2024-12-03 21:44:39 +03:00
}
end
implements IPluginInterface
end
module EmptyModule
def get_object
Proc.new { EmptyWorker.new }
end
module_function :get_object
end
class Kernel::PluginConfiguration
include EmptyModule
@@loaded_plugins[EmptyWorker::MODULE_ID] = EmptyModule.get_object
end