Skip to content

Commit

Permalink
Issue #4: TDExternalSessionClient is now functional and passes tODE c…
Browse files Browse the repository at this point in the history
…ommands along to remote tODE image ... superDoit does not do well with passing args with embedded spaces, so going with plan B
  • Loading branch information
dalehenrich committed Jun 6, 2023
1 parent db169b1 commit f4e1a10
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 12 deletions.
4 changes: 2 additions & 2 deletions bin/todeIt.solo
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ doit
stoneSpec := (self globalNamed: 'GDKAbstractRegistryStore') fromPath: specFile ifAbsent: [] ].
sessionDescription := (self globalNamed: 'TDSessionDescription')
fromFile: stoneSpec todeHome asFileReference / 'sys' / 'local' / 'sessions' / stoneSpec stoneName.
(self globalNamed: 'TDShell')
^ (self globalNamed: 'TDShell')
sessionDescription: sessionDescription
evaluate: '3+4'
evaluate: (self positionalArgs at: 1)
debugMode: self debug
%
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
accessing
environmentId
^ 0
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
evaluation
evaluateCommand: command batchMode: batchBool
| stonString |
stonString := (STON toString: command) encodeAsUTF8.
stonString := STON toString: command.
^ self session
executeStringExpectingStringNB:
'(' , self todeServerAccessString , ' for: ' , self shell shellId asString , ') evaluateSTONCommand:'
, stonString printString
envId: self environmentId
executeString:
'(' , self todeServerAccessString , ' for: ' , self shell shellId asString
, ') evaluateSTONCommand:' , stonString printString
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
session management
login
| sess gemNRS stoneNRS sessionDescription |
| gemNRS stoneNRS sessionDescription |
sessionDescription := self sessionDescription.
gemNRS := GsNetworkResourceString
gemNRSForNetLDI: sessionDescription netLDIPort
onHost: sessionDescription gemHost.
stoneNRS := GsNetworkResourceString
stoneNRSForStoneName: sessionDescription stoneName
onHost: sessionDescription stoneHost.
sess := GsTsExternalSession
^ (GsTsExternalSession
gemNRS: gemNRS
stoneNRS: stoneNRS
username: sessionDescription userId
password: sessionDescription password
password: sessionDescription password) login
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
accessing
todeServerAccessString
^ 'TDTopezServer'
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
stash
shellId
shellId ifNil: [ shellId := self windowStatus nextShellWindowId ].
^ shellId
shellId ifNil: [ shellId := 1 ].
^ shellId

0 comments on commit f4e1a10

Please sign in to comment.