-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #4: TDExternalSessionClient is now functional and passes tODE c…
…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
1 parent
db169b1
commit f4e1a10
Showing
6 changed files
with
17 additions
and
12 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
3 changes: 3 additions & 0 deletions
3
src/GsDevKit_stones-Tode.package/TDExternalSessionClient.class/instance/environmentId.st
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,3 @@ | ||
accessing | ||
environmentId | ||
^ 0 |
9 changes: 4 additions & 5 deletions
9
..._stones-Tode.package/TDExternalSessionClient.class/instance/evaluateCommand.batchMode..st
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 |
---|---|---|
@@ -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 |
6 changes: 3 additions & 3 deletions
6
src/GsDevKit_stones-Tode.package/TDExternalSessionClient.class/instance/login.st
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 |
---|---|---|
@@ -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 |
3 changes: 3 additions & 0 deletions
3
...vKit_stones-Tode.package/TDExternalSessionClient.class/instance/todeServerAccessString.st
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,3 @@ | ||
accessing | ||
todeServerAccessString | ||
^ 'TDTopezServer' |
4 changes: 2 additions & 2 deletions
4
src/GsDevKit_stones-Tode.package/TDShell.class/instance/shellId.st
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
stash | ||
shellId | ||
shellId ifNil: [ shellId := self windowStatus nextShellWindowId ]. | ||
^ shellId | ||
shellId ifNil: [ shellId := 1 ]. | ||
^ shellId |