Browse Source

Sync. after long time without working on Brea.

master
Offray Luna 1 year ago
parent
commit
4d69b562d8
1 changed files with 5 additions and 4 deletions
  1. +5
    -4
      repository/Brea/BreaWebsite.class.st

+ 5
- 4
repository/Brea/BreaWebsite.class.st 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 }

Loading…
Cancel
Save