mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-17 15:33:12 +09:00
Add onMasterConfigFieldChanged hook
Add hook for master plugin code to react to the master config changing.
This commit is contained in:
1 parent
a979c0cfac
commit
68b8ac6b8c
3 files changed
+18
No files matched your search
@@ -62,6 +62,8 @@ describe("lib/plugin", function() {
|
||||
});
|
||||
it("should define defaults for hooks", async function() {
|
||||
await masterPlugin.onInstanceStatusChanged({}, "running", "initialized");
|
||||
await masterPlugin.onMasterConfigFieldChanged({}, "foo", null);
|
||||
await masterPlugin.onInstanceConfigFieldChanged({}, {}, "foo", null);
|
||||
await masterPlugin.onMetrics();
|
||||
await masterPlugin.onShutdown();
|
||||
masterPlugin.onSlaveConnectionEvent({}, "connect");
|
||||
|
||||
Reference in new issue
Block a user