-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
103a62e
commit 072bcb9
Showing
6 changed files
with
99 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,3 @@ services: | |
volumes: | ||
# - ./iris.key:/usr/irissys/mgr/iris.key | ||
- ./shared:/shared | ||
command: --check-caps false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// unexpire passwords for dev mode | ||
new $namespace | ||
set $namespace = "%SYS" | ||
do ##class(Security.Users).UnExpireUserPasswords("*") | ||
|
||
// install zpm | ||
set r=##class(%Net.HttpRequest).%New(),r.Server="pm.community.intersystems.com",r.SSLConfiguration="ISC.FeatureTracker.SSL.Config" d r.Get("/packages/zpm/latest/installer"),$system.OBJ.LoadStream(r.HttpResponse.Data,"c") | ||
|
||
// load installer | ||
do $SYSTEM.OBJ.Load("/opt/irisapp/Installer.cls", "ck") | ||
|
||
// setup environment (namespaces, users, etc.) | ||
set sc = ##class(App.Installer).Run(.vars) | ||
|
||
// install git-source-control package (zpm) | ||
set $namespace = "DEV" | ||
zpm "install git-source-control" | ||
set $namespace = "PROD" | ||
zpm "install git-source-control" | ||
|
||
halt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
Class Test.Person Extends %Persistent | ||
{ | ||
|
||
Property Name As %String; | ||
|
||
Property Surname As %String; | ||
|
||
Property City As %String; | ||
|
||
Property SSN As %String; | ||
|
||
ClassMethod Create(name As %String, surname As %String, city As %String, ssn As %String) As %Status | ||
{ | ||
set ret = $$$OK | ||
try { | ||
set object = ..%New() | ||
set object.Name = name | ||
set object.Surname = surname | ||
set object.City = city | ||
set object.SSN = ssn | ||
|
||
$$$ThrowOnError(object.%Save()) | ||
set ret = object.%Id() | ||
|
||
} catch ex { | ||
set ret = ex.AsStatus() | ||
} | ||
quit ret | ||
} | ||
|
||
Storage Default | ||
{ | ||
<Data name="PersonDefaultData"> | ||
<Value name="1"> | ||
<Value>%%CLASSNAME</Value> | ||
</Value> | ||
<Value name="2"> | ||
<Value>Name</Value> | ||
</Value> | ||
<Value name="3"> | ||
<Value>Surname</Value> | ||
</Value> | ||
<Value name="4"> | ||
<Value>City</Value> | ||
</Value> | ||
<Value name="5"> | ||
<Value>SSN</Value> | ||
</Value> | ||
</Data> | ||
<DataLocation>^Test.PersonD</DataLocation> | ||
<DefaultData>PersonDefaultData</DefaultData> | ||
<IdLocation>^Test.PersonD</IdLocation> | ||
<IndexLocation>^Test.PersonI</IndexLocation> | ||
<StreamLocation>^Test.PersonS</StreamLocation> | ||
<Type>%Storage.Persistent</Type> | ||
} | ||
|
||
} |