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 }
|
{ #category : #utility }
|
||||||
BreaWebsite >> downloadTemplateNamed: aName Into: aDirectory [
|
BreaWebsite >> downloadTemplateNamed: aName Into: aDirectory [
|
||||||
"aName: String aDirectory: aFileLocation"
|
"aName: String aDirectory: aFileLocation"
|
||||||
| remoteUrl templatesFile |
|
| remoteUrl templatesFile localDirectory |
|
||||||
aDirectory ensureDeleteAll.
|
localDirectory := aDirectory asFileReference.
|
||||||
aDirectory ensureCreateDirectory.
|
localDirectory ensureDeleteAll.
|
||||||
|
localDirectory ensureCreateDirectory.
|
||||||
remoteUrl := self class templates at: aName.
|
remoteUrl := self class templates at: aName.
|
||||||
GrafoscopioUtils
|
GrafoscopioUtils
|
||||||
downloadingFrom: remoteUrl
|
downloadingFrom: remoteUrl
|
||||||
@ -114,7 +115,7 @@ BreaWebsite >> downloadTemplateNamed: aName Into: aDirectory [
|
|||||||
templatesFile := FileLocator temp asFileReference / (remoteUrl splitOn: '/') last.
|
templatesFile := FileLocator temp asFileReference / (remoteUrl splitOn: '/') last.
|
||||||
ZipArchive new
|
ZipArchive new
|
||||||
readFrom: templatesFile;
|
readFrom: templatesFile;
|
||||||
extractAllTo: aDirectory
|
extractAllTo: localDirectory
|
||||||
]
|
]
|
||||||
|
|
||||||
{ #category : #accessing }
|
{ #category : #accessing }
|
||||||
|
Loading…
Reference in New Issue
Block a user