Sync. after long time without working on Brea.
This commit is contained in:
parent
d3f2d8df70
commit
4d69b562d8
@ -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 }
|
||||
|
Loading…
Reference in New Issue
Block a user