forked from grongierisc/iris-pkcs7-util
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Installer.cls
26 lines (21 loc) · 841 Bytes
/
Installer.cls
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/// an example of Installer class just to create a new clear namespace and database IRISAPP
Class App.Installer
{
XData setup
{
<Manifest>
<Default Name="Namespace" Value="IRISAPP"/>
<Default Name="database" Value="irisapp"/>
<Namespace Name="${Namespace}" Code="${Namespace}" Data="${Namespace}" Create="yes" Ensemble="no">
<Configuration>
<Database Name="${Namespace}" Dir="${mgrdir}${database}/data" Create="yes" Resource="%DB_${Namespace}"/>
</Configuration>
</Namespace>
</Manifest>
}
ClassMethod setup(ByRef pVars, pLogLevel As %Integer = 3, pInstaller As %Installer.Installer, pLogger As %Installer.AbstractLogger) As %Status [ CodeMode = objectgenerator, Internal ]
{
#; Let XGL document generate code for this method.
Quit ##class(%Installer.Manifest).%Generate(%compiledclass, %code, "setup")
}
}