Skip to content

Commit

Permalink
have to make calls to truncate conditional on the version of Rowan be…
Browse files Browse the repository at this point in the history
…ing used ..
  • Loading branch information
dalehenrich committed Oct 25, 2023
1 parent 1c5ab31 commit 1bffc24
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ export
exportTo: fileRef
fileRef
writeStreamDo: [ :fileStream |
fileStream truncate.
Rowan version >= ('3.0.0' asRwGemStoneVersionNumber)
ifTrue: [ fileStream truncate ].
STON put: self onStreamPretty: fileStream ]
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ newRegistryNamed: registryName ensure: ensure
stonesRegistry at: registryName put: stoneRegistry registryPath.
self configFile
writeStreamDo: [ :fileStream |
fileStream truncate.
Rowan version >= ('3.0.0' asRwGemStoneVersionNumber)
ifTrue: [ fileStream truncate ].
STON put: stonesRegistry onStreamPretty: fileStream ].
stoneRegistry export.
^ stoneRegistry
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ export
export
self class configFile
writeStreamDo: [ :fileStream |
fileStream truncate.
Rowan version >= ('3.0.0' asRwGemStoneVersionNumber)
ifTrue: [ fileStream truncate ].
STON put: self onStreamPretty: fileStream ].

0 comments on commit 1bffc24

Please sign in to comment.