Skip to content

Commit

Permalink
(fix) various %ZPM -> %IPM equivalents from community modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
isc-tleavitt committed Jan 19, 2024
1 parent 7f76b22 commit e683924
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions iris.script
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
zn "%SYS"
do ##class(%SYSTEM.OBJ).Load("/home/irisowner/zpm/Installer.cls","ck")
do ##class(%ZPM.Installer).setup("/home/irisowner/zpm/",3)
do ##class(%ZPM.PackageManager).Shell("install vscode-per-namespace-settings")
zn "USER"
do $System.OBJ.Load("/home/irisowner/zpm/Installer.cls","ck")
do ##class(IPM.Installer).setup("/home/irisowner/zpm/",3)
do ##class(%IPM.Main).Shell("install vscode-per-namespace-settings")
set ^UnitTestRoot="/usr/irissys/.vscode/%SYS/UnitTestRoot"
halt
2 changes: 1 addition & 1 deletion scripts/make-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ rm -rf /opt/out/*
iris start $ISC_PACKAGE_INSTANCENAME
/bin/echo -e \
" zpm \"package zpm -only -p \"\"/tmp/zpm-${VERSION}\"\" \":1\n" \
" set sc = ##class(%ZPM.Installer).MakeFile(\"/tmp/zpm-${VERSION}.tgz\", \"${RELEASE_FILE}\")\n" \
" set sc = ##class(IPM.Installer).MakeFile(\"/tmp/zpm-${VERSION}.tgz\", \"${RELEASE_FILE}\")\n" \
" halt" \
| iris session $ISC_PACKAGE_INSTANCENAME -U%SYS

Expand Down
6 changes: 3 additions & 3 deletions src/cls/IPM/Main.cls
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ ClassMethod TerminalPrompt() As %String

/// @API.Method
/// Get Version modules and current registry
/// example do ##class(%ZPM.PackageManager).GetVersion("zpm,zpm-registry",.out,.list)
/// example do ##class(%IPM.Main).GetVersion("zpm,zpm-registry",.out,.list)
ClassMethod GetVersion(ModuleName, ByRef out, list)
{
Do ..GetListModules("*", ModuleName, .list)
Expand All @@ -689,7 +689,7 @@ ClassMethod GetVersion(ModuleName, ByRef out, list)
}
}
set sc=$$$OK
set sql="select URL from %ZPM_PackageManager_Client.RemoteServerDefinition where Enabled = 1"
set sql="select URL from %IPM_Repo_Remote.Definition where Enabled = 1"
,rs=##class(%ResultSet).%New()
,sc=rs.Prepare(sql)
Set:sc sc=rs.Execute("")
Expand All @@ -709,7 +709,7 @@ ClassMethod ShellInternal(pCommand As %String, Output pException As %Exception.A
If (tCommand '= "") {
Set tOneCommand = 1
}
do ##class(%ZPM.PackageManager).GetVersion("zpm",.out)
do ##class(%IPM.Main).GetVersion("zpm",.out)
Set introMessageList = $ListBuild(
"Welcome to the Package Manager Shell (ZPM). Version: "_$$$FormattedLine($$$Green, ..GetVersionModule("zpm")),
"Enter q/quit to exit the shell. Enter ?/help to view available commands",
Expand Down

0 comments on commit e683924

Please sign in to comment.