From 774ee4f00c2e28428d6c3d594aa8acd8c89e184a Mon Sep 17 00:00:00 2001 From: Offray Luna Date: Sun, 18 Jul 2021 12:20:08 -0500 Subject: [PATCH] Installation instructions from external repository. --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index e2038a1..e062cf3 100644 --- a/README.md +++ b/README.md @@ -17,3 +17,9 @@ This is build from the years long experience with a diverse community around Gra (teachers, students, desginers, artists, librarias, scientists, among others) since its beginnings. Also they serve as a starting test bed to explore the moldability of GToolkit the affordances it provides for customization and how easy is to use them. + +To load this package open a Playground in GToolkit and execute: + +```smalltalk + "I load the configuration of this package using a external Gitea repository." "While more Git independient providers are implemented in Monticello, I will use Iceberg to download the repository and load it from a local directory" | location localRepo repoName packageName | "Sometimes repoName and packageName are different, following Pharo's conventions. For example the repoName can be MyPackage, while packageName can be My-Package" repoName := 'Datanalitica'. packageName := 'Datanalitica'. "Local and remote repo definition" location := FileLocator localDirectory / 'iceberg' / 'Offray' / repoName. location exists ifFalse: [ (IceRepositoryCreator new location: location; remote: (IceGitRemote url: 'https://code.tupale.co/Offray/', repoName, '.git'); createRepository) register ]. "Package loading" localRepo := 'gitlocal://', location fullName. Metacello new repository: localRepo; baseline: repoName; load. spec baseline: repoName with: [ spec repository: localRepo ]. spec package: packageName with: [ spec repository: localRepo ]. +```