Skip to content

Commit d566d29

Browse files
committed
documenting, package case change, clean up
1 parent 9c5c2ce commit d566d29

7 files changed

Lines changed: 26 additions & 15 deletions

File tree

Installer.cls

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/// an example of Installer class just to create a new clear namespace and database IRISAPP
12
Class App.Installer
23
{
34

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Open IRIS terminal:
3838

3939
```
4040
$ docker-compose exec iris iris session iris
41-
IRISAPP>write ##class(dc.PackageSample.ObjectScript).Test()
41+
IRISAPP>write ##class(dc.sample.ObjectScript).Test()
4242
```
4343
## How to start coding
4444
This repository is ready to code in VSCode with ObjectScript plugin.

dev.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ use it when docker says "There is no space left on device". It will remove built
55
docker system prune -f
66
```
77

8+
```
9+
docker rm -f $(docker ps -qa)
10+
```
11+
12+
813
## build container with no cache
914
```
1015
docker-compose build --no-cache --progress=plain
@@ -59,3 +64,8 @@ zn "%SYS" \
5964

6065
zw ##class(community.csvgen).GenerateFromURL("https://github.com/h2oai/h2o-tutorials/raw/master/h2o-world-2017/automl/data/product_backorders.csv")
6166

67+
Import directory with IRIS code
68+
69+
```
70+
do $SYSTEM.OBJ.ImportDir("/opt/irisbuild/src",, "ck")
71+
```

iris.script

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
// Unexpire passwords for dev mode
2-
zn "%SYS"
3-
Do ##class(Security.Users).UnExpireUserPasswords("*")
1+
// Unexpire passwords to simplify dev mode. Comment these two lines for Production use
2+
zn "%SYS"
3+
Do ##class(Security.Users).UnExpireUserPasswords("*")
44

5-
// create IRISAPP namespace
6-
do $SYSTEM.OBJ.Load("/opt/irisbuild/Installer.cls", "ck")
7-
set sc = ##class(App.Installer).setup()
5+
// create IRISAPP namespace
6+
do $SYSTEM.OBJ.Load("/opt/irisbuild/Installer.cls", "ck")
7+
set sc = ##class(App.Installer).setup()
88

9-
10-
zn "IRISAPP"
11-
zpm "load /opt/irisbuild/ -v":1:1
12-
halt
9+
// load all the code of the project as a ZPM package
10+
zn "IRISAPP"
11+
zpm "load /opt/irisbuild/ -v":1:1
12+
halt

module.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
<Document name="intersystems-iris-template.ZPM">
44
<Module>
55
<Name>intersystems-iris-template</Name>
6-
<Version>1.0.0</Version>
6+
<Version>1.1.0</Version>
77
<Packaging>module</Packaging>
88
<SourcesRoot>src/iris</SourcesRoot>
9-
<Resource Name="dc.PackageSample.PKG"/>
9+
<Resource Name="dc.sample.PKG"/>
1010
</Module>
1111
</Document>
1212
</Export>

src/iris/dc/PackageSample/ObjectScript.cls renamed to src/iris/dc/sample/ObjectScript.cls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Class dc.PackageSample.ObjectScript
1+
Class dc.sample.ObjectScript
22
{
33

44
ClassMethod Test() As %Status

src/iris/dc/PackageSample/PersistentClass.cls renamed to src/iris/dc/sample/PersistentClass.cls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Class dc.PackageSample.PersistentClass Extends %Persistent
1+
Class dc.sample.PersistentClass Extends %Persistent
22
{
33

44
Property Test As %VarString;

0 commit comments

Comments
 (0)