File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 1
- ** /.DS_Store
1
+ ** /.DS_Store
2
+ . *
Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ USER irisowner
10
10
COPY Installer.cls SQLPriv.xml ./
11
11
COPY src src
12
12
COPY zpm-registry.yaml /usr/irissys/
13
+ RUN VERSION=$(grep -oP '(?<=<Version>).*?(?=</Version>)' module.xml) && \
14
+ sed -i "s/Parameter VERSION.*/Parameter VERSION = \" ${VERSION}\" ;/" ./src/CLS/ZPM/Registry.cls
13
15
14
16
RUN \
15
17
iris start ${ISC_PACKAGE_INSTANCENAME} && \
Original file line number Diff line number Diff line change 2
2
Class ZPM .Registry Extends ZPM .REST .Base
3
3
{
4
4
5
+ Parameter VERSION = " 1.0.0" ;
6
+
5
7
XData UrlMap [ XMLNamespace = " http://www.intersystems.com/urlmap" ]
6
8
{
7
9
<Routes >
@@ -50,7 +52,13 @@ XData UrlMap [ XMLNamespace = "http://www.intersystems.com/urlmap" ]
50
52
/// Package Manager general information
51
53
ClassMethod GetInfo () As %Status
52
54
{
53
- SET version = $get (^RegistryVersion , " 0.0.2" )
55
+ SET version = ..#VERSION
56
+ If $System .CLS .IsMthd (" %ZPM.PackageManager.Developer.Module" , " NameOpen" ) {
57
+ Set zpmModule = ##class (%ZPM.PackageManager.Developer.Module ).NameOpen (" zpm-registry" )
58
+ If $IsObject (zpmModule ) {
59
+ Set version = zpmModule .VersionString
60
+ }
61
+ }
54
62
SET info = {
55
63
" version" : (version )
56
64
}
You can’t perform that action at this time.
0 commit comments