From 321daf71657b917c2ec2b801b694bb9a883bb312 Mon Sep 17 00:00:00 2001 From: Offray Luna Date: Thu, 8 Oct 2020 17:37:22 -0500 Subject: [PATCH] Scripts installation. --- repository/Brea/BreaUtils.class.st | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 repository/Brea/BreaUtils.class.st diff --git a/repository/Brea/BreaUtils.class.st b/repository/Brea/BreaUtils.class.st new file mode 100644 index 0000000..3b5286f --- /dev/null +++ b/repository/Brea/BreaUtils.class.st @@ -0,0 +1,22 @@ +" +I provide common utilities for the use with the Brea CMS. +" +Class { + #name : #BreaUtils, + #superclass : #Object, + #category : #Brea +} + +{ #category : #'as yet unclassified' } +BreaUtils class >> installSkeleton [ + "I populate the folder and files structures for Brea documentation and customizations." + | skeleton destination | + GrafoscopioUtils + downloadingFrom: 'https://mutabit.com/repos.fossil/brea/zip' + withMessage: 'Dowloading files skeleton' + into: FileLocator temp. + skeleton := ZipArchive new readFrom: FileLocator temp / 'zip'. + destination := FileLocator home / '.local/share/Brea'. + destination ensureCreateDirectory. + skeleton extractAllTo: destination. +]