Skip to content

Commit

Permalink
looks like deleteRegistory.solo is working now ... directory structur…
Browse files Browse the repository at this point in the history
…e in $STONES_HONE/<registry-name> directory is left untouched
  • Loading branch information
dalehenrich committed Oct 24, 2023
1 parent 8c1d952 commit 469b4ca
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export
export
self class configFile
writeStreamDo: [ :fileStream |
fileStream truncate.
STON put: self onStreamPretty: fileStream ].
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
destruction
destroy: force
| stonesRegistry |
"stop all running stones and netldi, destroy stone directories, and remove receiver from the registry metadata"
self stones keysDo: [:stoneName |
| stoneSpec |
Expand All @@ -18,6 +19,12 @@ destroy: force
stoneSpec
destroyStoneStructure;
yourself. ].
self stones keysDo: [:stoneName |
self stones removeKey: stoneName ].
self export. "will be deleted later"
self stones keysDo: [:stoneName |
self stones removeKey: stoneName ].
self export. "will be deleted later"
('$STONES_DATA_HOME' asFileReference / 'stone' / self name) ensureDeleteAll.
('$STONES_DATA_HOME' asFileReference / 'projectSets' / self name) ensureDeleteAll.
stonesRegistry := GDKRegistry instance.
stonesRegistry removeKey: self name asSymbol.
stonesRegistry export.
self registryFile asFileReference ensureDelete.

0 comments on commit 469b4ca

Please sign in to comment.