-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.Installer.cls
37 lines (28 loc) · 1.21 KB
/
App.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
27
28
29
30
31
32
33
34
35
36
37
Class App.Installer
{
XData setup
{
<Manifest>
<Default Name="Namespace" Value="IRISAPP"/>
<Default Name="app" Value="irisapp" />
<Namespace Name="${Namespace}" Code="${Namespace}-CODE" Data="${Namespace}-DATA" Create="yes" Ensemble="1">
<Configuration>
<Database Name="${Namespace}-DATA" Dir="${MGRDIR}/${app}/data" Create="yes" Resource="%DB_${Namespace}-DATA"/>
<Database Name="${Namespace}-CODE" Dir="${MGRDIR}/${app}/code" Create="yes" Resource="%DB_${Namespace}-CODE"/>
</Configuration>
<CSPApplication Url="/csp/${app}" Directory="${cspdir}${app}" ServeFiles="1" Recurse="1" MatchRoles=":%DB_${Namespace}" AuthenticationMethods="32"
/>
</Namespace>
<Namespace Name="%ALL" Code="USER" Data="USER" Create="no" Ensemble="0">
<Configuration>
<ClassMapping From="${Namespace}-DATA" Package="common" />
</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")
}
}