forked from MakarovS96/dc-analytics-proto
-
Notifications
You must be signed in to change notification settings - Fork 9
/
dswinstaller.cls
60 lines (51 loc) · 2.16 KB
/
dswinstaller.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Class DSWMDX2JSON.Installer
{
XData setup [ XMLNamespace = INSTALLER ]
{
<Manifest>
<Var Name="Namespace" Value="DCANALYTICS"/>
<Log Text="Creating namespace ${Namespace}" Level="0"/>
<Namespace Name="${Namespace}" Create="yes" Code="${Namespace}" Ensemble="" Data="${Namespace}">
<Configuration>
<Database Name="${Namespace}"
Dir="${MGRDIR}${Namespace}"
Create="yes"
Resource="%DB_${Namespace}"
PublicPermissions="RW"
MountAtStartup="true"/>
</Configuration>
</Namespace>
<Log Text="End Creating namespace ${Namespace}" Level="0"/>
<Var Name="Namespace" Value="MDX2JSON"/>
<Var Name="Import" Value="0"/>
<Log Text="Creating namespace ${Namespace}" Level="0"/>
<Namespace Name="${Namespace}" Create="yes" Code="${Namespace}" Ensemble="" Data="${Namespace}">
<Configuration>
<Database Name="${Namespace}"
Dir="${MGRDIR}/${Namespace}"
Create="yes"
Resource="%DB_${Namespace}"
PublicPermissions="RW"
MountAtStartup="true"/>
</Configuration>
</Namespace>
<Log Text="End Creating namespace ${Namespace}" Level="0"/>
<Namespace Name="${Namespace}">
<Import File="/tmp/deps/Cache-MDX2JSON-master/MDX2JSON/" Flags="ck" Recurse="1"/>
</Namespace>
<Namespace Name="${CURRENTNS}">
<Import File="/tmp/deps/Cache-MDX2JSON-master/MDX2JSON/Installer.cls.xml" Flags="ck"/>
<Import File="/tmp/deps/deepseeweb.xml" Flags="ck"/>
<RunInstall Class="MDX2JSON.Installer" Method="setup"/>
<RunInstall Class="DSW.Installer" Method="setup"/>
</Namespace>
</Manifest>
}
ClassMethod setup(ByRef pVars, pLogLevel As %Integer = 3, pInstaller As %Installer.Installer, pLogger As %Installer.AbstractLogger) As %Status [ CodeMode = objectgenerator, Internal ]
{
do %code.WriteLine($char(9)_"set pVars(""CURRENTCLASS"")="""_%classname_"""")
do %code.WriteLine($char(9)_"set pVars(""CURRENTNS"")="""_$namespace_"""")
#; Let our XGL document generate code for this method.
Quit ##class(%Installer.Manifest).%Generate(%compiledclass, %code, "setup")
}
}