-
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.
Isue #4: working through setUpSys and progressed through 'mount --tod…
…eRoot' commands
- Loading branch information
1 parent
fb695a5
commit 132cfff
Showing
10 changed files
with
99 additions
and
9 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
26 changes: 26 additions & 0 deletions
26
...es-Tode.package/TDExternalSessionClient.class/instance/_setupSessionForGsDevKit_stones.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,26 @@ | ||
private | ||
_setupSessionForGsDevKit_stones | ||
"set up the tODE for GsDevKit_stones environment. session has been logged in, so we can | ||
execute commands and set up environement: | ||
1. set gitRootPath | ||
" | ||
|
||
| executeString doitString | | ||
executeString := 'TDProjectEntryDefinition defaultGitRootPath: ' | ||
, self sessionDescription serverGitRoot printString. | ||
doitString := debugMode | ||
ifTrue: [ | ||
' | ||
[ | ||
^ (' , executeString | ||
, | ||
') ] | ||
on: Error, Halt | ||
do: [ :ex | System waitForDebug ]' ] | ||
ifFalse: [ executeString ]. | ||
|
||
|
||
[ self session nbExecute: doitString ] | ||
on: GsErrorNotification | ||
do: [ :ex | self error: 'Unable send #backupDirectory: message to tODE server' ]. | ||
^ self session nbResult |
5 changes: 5 additions & 0 deletions
5
src/GsDevKit_stones-Tode.package/TDExternalSessionClient.class/instance/debugMode.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,5 @@ | ||
accessing | ||
debugMode | ||
"if true, remote debugging via debugGem will be enabled" | ||
|
||
^ debugMode |
6 changes: 3 additions & 3 deletions
6
...de.package/TDExternalSessionClient.class/instance/evaluateCommand.batchMode.debugMode..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,9 @@ | ||
evaluation | ||
evaluateCommand: command batchMode: batchBool debugMode: debugMode | ||
other | ||
evaluateCommand: command batchMode: batchBool debugMode: debugModeBool | ||
| stonString | | ||
stonString := STON toString: command. | ||
^ self | ||
_serverExecuteString: | ||
'(' , self todeServerAccessString , ' for: ' , self shell shellId asString | ||
, ') evaluateSTONCommand:' , stonString printString | ||
debugMode: debugMode | ||
debugMode: debugModeBool |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# | ||
# test project command | ||
# | ||
# ... look in the gemnet file for the gem to find the | ||
# DEBUGGEM expression to use | ||
# | ||
project new --force Foo |
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,13 @@ | ||
# Set up /sys node structure | ||
mount --todeRoot / / _home | ||
mount --todeRoot sys/default /sys default | ||
mount --todeRoot sys/local /sys local | ||
mount --todeRoot sys/local/server/stones /sys stones | ||
# ensure that --stoneRoot directory structure is present | ||
# /sys/default/bin/validateStoneSysNodes --files --repair | ||
mount --stoneRoot / /sys stone | ||
# Define /home and /projects based on a composition of the /sys nodes | ||
mount --stoneRoot homeComposition.ston / home | ||
mount --stoneRoot projectComposition.ston / projects | ||
commit | ||
cd |