Sync. after long time without working on Brea.

This commit is contained in:
Offray Luna 2019-01-03 11:52:45 +00:00
parent d3f2d8df70
commit 4d69b562d8

View File

@ -103,9 +103,10 @@ BreaWebsite >> downloadTemplate [
{ #category : #utility }
BreaWebsite >> downloadTemplateNamed: aName Into: aDirectory [
"aName: String aDirectory: aFileLocation"
| remoteUrl templatesFile |
aDirectory ensureDeleteAll.
aDirectory ensureCreateDirectory.
| remoteUrl templatesFile localDirectory |
localDirectory := aDirectory asFileReference.
localDirectory ensureDeleteAll.
localDirectory ensureCreateDirectory.
remoteUrl := self class templates at: aName.
GrafoscopioUtils
downloadingFrom: remoteUrl
@ -114,7 +115,7 @@ BreaWebsite >> downloadTemplateNamed: aName Into: aDirectory [
templatesFile := FileLocator temp asFileReference / (remoteUrl splitOn: '/') last.
ZipArchive new
readFrom: templatesFile;
extractAllTo: aDirectory
extractAllTo: localDirectory
]
{ #category : #accessing }