Skip to content

Commit 8bdf276

Browse files
committed
zpm support
1 parent ac88a61 commit 8bdf276

2 files changed

Lines changed: 34 additions & 0 deletions

File tree

module.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Export generator="Cache" version="25">
3+
<Document name="CacheBlocksExplorer.MODULE"><Module>
4+
<Name>CacheBlocksExplorer</Name>
5+
<Version>0.0.1</Version>
6+
<Packaging>module</Packaging>
7+
<LifecycleClass>Blocks.Lifecycle</LifecycleClass>
8+
</Module>
9+
</Document></Export>

preload/Blocks.Lifecycle.cls

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Class Blocks.Lifecycle Extends ZPM.PackageManager.Developer.Lifecycle.Module
2+
{
3+
4+
Method %Activate() As %Status
5+
{
6+
Set tSC = $$$OK
7+
Try {
8+
Set tSC = ##super(.pParams)
9+
If $$$ISERR(tSC) {
10+
Quit
11+
}
12+
13+
Set tRootDirectory = $Get(pParams("RootDirectory")) _ "/server/"
14+
Set tVerbose = $Get(pParams("Verbose"),0)
15+
do ##class(%SYSTEM.OBJ).Load(tRootDirectory _ "src/DevInstaller.cls", "ck")
16+
Write:tVerbose !,"Doing Blocks.DevInstaller.setup()"
17+
do ##class(Blocks.DevInstaller).setupWithVars(tRootDirectory)
18+
Write:tVerbose !,"Done."
19+
} Catch e {
20+
Set tSC = e.AsStatus()
21+
}
22+
Quit tSC
23+
}
24+
25+
}

0 commit comments

Comments
 (0)