-
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: this takes things about as far as they can go ...
tODE comes up and can be used to work with code (haven't done this extensively), however the project entry and object/filesystem access code is not functional ... namely $GS_HOME/sys/default/client/tode-scripts/setUpSys does not run correctly ... I suspect that there is code on the client that is executed during login that properly initializes the server ... we've got a properly setup TDSessionDescription, so we've got all the pieces ... just need to glue them together properly.
- Loading branch information
1 parent
bbc55e5
commit d5a4df9
Showing
18 changed files
with
97 additions
and
73 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
3 changes: 3 additions & 0 deletions
3
src/GsDevKit_stones-Core.package/GDKStoneSpec.class/instance/todeHome.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 | ||
todeHome | ||
^ self stonesRegistry todeHome |
3 changes: 0 additions & 3 deletions
3
src/GsDevKit_stones-Core.package/GDKStoneSpec.class/instance/todeSharedDirectory.st
This file was deleted.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
src/GsDevKit_stones-Core.package/GDKStonesRegistry.class/instance/todeHome..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,7 @@ | ||
accessing | ||
todeHome: todeHomeDirPath | ||
"The tode home is equivalent to the $GS_HOME directory in GsDevKit_home" | ||
|
||
(todeHomeDirPath isKindOf: CharacterCollection) | ||
ifFalse: [ self error: 'The todeHome is expected to be a CharacterCollection' ]. | ||
todeHome := todeHomeDirPath |
3 changes: 3 additions & 0 deletions
3
src/GsDevKit_stones-Core.package/GDKStonesRegistry.class/instance/todeHome.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 | ||
todeHome | ||
^todeHome |
27 changes: 27 additions & 0 deletions
27
...evKit_stones-Core.package/GDKStonesRegistry.class/instance/todeHomeDirectory.populate..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,27 @@ | ||
accessing | ||
todeHomeDirectory: todeHomePath populate: populate | ||
"The tode shared directory is equivalent to the $GS_HOME/sys/local directory in GsDevKit_home. | ||
The directories created in this method are required for the proper functioning of a tODE client." | ||
|
||
| todeHomeDir | | ||
todeHomeDir := todeHomePath asFileReference. | ||
self todeHome: todeHomeDir pathString. | ||
(todeHomeDir exists not or: [ populate ]) | ||
ifTrue: [ | ||
todeHomeDir ensureCreateDirectory. | ||
(todeHomeDir / 'sys') ensureCreateDirectory. | ||
(todeHomeDir / 'sys' / 'local') ensureCreateDirectory. | ||
(todeHomeDir / 'sys' / 'local' / 'server') ensureCreateDirectory. | ||
(todeHomeDir / 'sys' / 'local' / 'server' / 'gemstone') ensureCreateDirectory. | ||
(todeHomeDir / 'sys' / 'local' / 'server' / 'home') ensureCreateDirectory. | ||
(todeHomeDir / 'sys' / 'local' / 'server' / 'monticello') | ||
ensureCreateDirectory. | ||
(todeHomeDir / 'sys' / 'local' / 'server' / 'projects') ensureCreateDirectory. | ||
(todeHomeDir / 'sys' / 'local' / 'server' / 'stones') ensureCreateDirectory. | ||
(todeHomeDir / 'sys' / 'local' / 'server' / 'templates') | ||
ensureCreateDirectory. | ||
(todeHomeDir / 'sys' / 'local' / 'server' / 'upgrade') ensureCreateDirectory. | ||
(todeHomeDir / 'sys' / 'local' / 'sessions') ensureCreateDirectory. | ||
self class | ||
symbolicLink: todeHomeDir / 'sys' / 'local' / 'server' / 'stones' | ||
linkName: todeHomeDir / 'sys' / 'stones' ] |
7 changes: 0 additions & 7 deletions
7
src/GsDevKit_stones-Core.package/GDKStonesRegistry.class/instance/todeSharedDirectory..st
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
...Kit_stones-Core.package/GDKStonesRegistry.class/instance/todeSharedDirectory.populate..st
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
src/GsDevKit_stones-Core.package/GDKStonesRegistry.class/instance/todeSharedDirectory.st
This file was deleted.
Oops, something went wrong.
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
15 changes: 15 additions & 0 deletions
15
..._stones-Core.package/GDKhomeStoneDirectorySpec.class/instance/createTodeHomeDirectory..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,15 @@ | ||
stone creation | ||
createTodeHomeDirectory: stoneSpec | ||
stoneSpec todeHome | ||
ifNil: [ | ||
GsFile stdout | ||
nextPutAll: | ||
'WARNING: tode home directory is not defined, use registerTodeSharedDirectory.solo to define' ] | ||
ifNotNil: [ :todeHome | | ||
| todeStonesDir | | ||
todeStonesDir := todeHome asFileReference / 'sys' / 'local' / 'server' / 'stones' | ||
/ stoneSpec stoneName. | ||
todeStonesDir ensureCreateDirectory. | ||
self class symbolicLink: todeStonesDir linkName: stoneSpec rootDir / 'tode'. | ||
self createTodeStoneMetadata: todeStonesDir. | ||
self createSessionDescripton: stoneSpec ] |
15 changes: 0 additions & 15 deletions
15
...tones-Core.package/GDKhomeStoneDirectorySpec.class/instance/createTodeSharedDirectory..st
This file was deleted.
Oops, something went wrong.
3 changes: 2 additions & 1 deletion
3
..._stones-Core.package/GDKhomeStoneDirectorySpec.class/instance/createTodeStoneMetadata..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,2 +1,3 @@ | ||
stone creation | ||
createTodeStoneMetadata: stoneSpec | ||
createTodeStoneMetadata: todeStonesDir | ||
"todeStonesDir - directory where meta data is to be created" |
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