-
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: createStone.solo has been fleshed out. stone structure crea…
…ted. need to create the the stone-specific metadata for tode and create the session description
- Loading branch information
1 parent
3db2a55
commit 895a50a
Showing
9 changed files
with
75 additions
and
18 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
8 changes: 6 additions & 2 deletions
8
src/GsDevKit_stones-Core.package/GDKStonesRegistry.class/instance/todeSharedDirectory..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,3 +1,7 @@ | ||
accessing | ||
todeSharedDirectory: object | ||
todeSharedDirectory := object | ||
todeSharedDirectory: todeSharedDirPath | ||
"The tode shared directory is equivalent to the $GS_HOME/sys/local directory in GsDevKit_home" | ||
|
||
(todeSharedDirPath isKindOf: CharacterCollection) | ||
ifFalse: [ self error: 'The todeSharedDirectory is expected to be a CharacterCollection' ]. | ||
todeSharedDirectory := todeSharedDirPath |
12 changes: 12 additions & 0 deletions
12
...Kit_stones-Core.package/GDKStonesRegistry.class/instance/todeSharedDirectory.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,12 @@ | ||
accessing | ||
todeSharedDirectory: todeSharedDirPath populate: populate | ||
"The tode shared directory is equivalent to the $GS_HOME/sys/local directory in GsDevKit_home" | ||
|
||
| todeSharedDir | | ||
todeSharedDir := todeSharedDirPath asFileReference. | ||
self todeSharedDirectory: todeSharedDirPath. | ||
todeSharedDir ensureCreateDirectory. | ||
(todeSharedDir / 'server') ensureCreateDirectory. | ||
(todeSharedDir / 'server' / 'projects') ensureCreateDirectory. | ||
(todeSharedDir / 'server' / 'stones') ensureCreateDirectory. | ||
(todeSharedDir / 'sessions') ensureCreateDirectory |
6 changes: 6 additions & 0 deletions
6
..._stones-Core.package/GDKhomeStoneDirectorySpec.class/instance/createSessionDescripton..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,6 @@ | ||
stone creation | ||
createSessionDescripton: stoneSpec | ||
| sessionDescriptionFile | | ||
sessionDescriptionFile := stoneSpec todeSharedDirectory asFileReference / 'sessions' | ||
/ stoneSpec stoneName. | ||
sessionDescriptionFile ensureCreateFile |
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
2 changes: 2 additions & 0 deletions
2
..._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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
stone creation | ||
createTodeStoneMetadata: stoneSpec |
12 changes: 9 additions & 3 deletions
12
...it_stones-Core.package/GDKhomeStoneDirectorySpec.class/instance/destroyStoneStructure..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,5 +1,11 @@ | ||
stone destruction | ||
destroyStoneStructure: stoneSpec | ||
| todeDir | | ||
todeDir := stoneSpec todeSharedDirectory asFileReference / stoneSpec stoneName. | ||
todeDir ensureDeleteAll | ||
"clean up the stone-specific tode meta data" | ||
|
||
| sharedtodeDir stoneDir sessionsFile | | ||
self halt. | ||
sharedtodeDir := stoneSpec todeSharedDirectory asFileReference. | ||
stoneDir := sharedtodeDir / 'stones' / stoneSpec stoneName. | ||
stoneDir ensureDeleteAll. | ||
sessionsFile := sharedtodeDir / 'sessions' / stoneSpec stoneName. | ||
sessionsFile ensureDelete |