2020-07-14 15:58:03 +00:00
|
|
|
Class {
|
|
|
|
#name : #BaselineOfGrafoscopio,
|
|
|
|
#superclass : #BaselineOf,
|
|
|
|
#category : #BaselineOfGrafoscopio
|
|
|
|
}
|
|
|
|
|
|
|
|
{ #category : #baselines }
|
|
|
|
BaselineOfGrafoscopio >> baseline: spec [
|
|
|
|
<baseline>
|
|
|
|
|
|
|
|
spec
|
|
|
|
for: #common
|
|
|
|
do: [
|
|
|
|
|
|
|
|
"Dependencies"
|
2020-07-19 00:52:03 +00:00
|
|
|
self grafoscopioUtils: spec.
|
2020-07-14 15:58:03 +00:00
|
|
|
spec
|
|
|
|
package: 'Spec-Glamour'
|
|
|
|
with: [ spec repository: 'http://smalltalkhub.com/mc/jfabry/Playgroudn/main/' ].
|
|
|
|
|
|
|
|
"Packages"
|
2020-07-18 18:47:11 +00:00
|
|
|
spec
|
2020-07-14 15:58:03 +00:00
|
|
|
package: 'Grafoscopio' with: [ spec requires: #('Grafoscopio-Utils' 'Spec-Glamour' ) ]
|
|
|
|
]
|
|
|
|
]
|
2020-07-18 18:47:11 +00:00
|
|
|
|
|
|
|
{ #category : #'as yet unclassified' }
|
|
|
|
BaselineOfGrafoscopio >> grafoscopioUtils: spec [
|
|
|
|
"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"
|
|
|
|
|
2020-07-19 00:52:03 +00:00
|
|
|
| location localRepo |
|
|
|
|
"Dependencies"
|
|
|
|
|
|
|
|
"Local and remote repo definition"
|
2020-07-18 18:47:11 +00:00
|
|
|
location := FileLocator localDirectory / 'iceberg' / 'Offray' / 'GrafoscopioUtils'.
|
2020-07-19 00:52:03 +00:00
|
|
|
location exists ifFalse: [
|
|
|
|
(IceRepositoryCreator new
|
|
|
|
location: location;
|
|
|
|
remote: (IceGitRemote url: 'https://code.tupale.co/Offray/GrafoscopioUtils.git');
|
|
|
|
createRepository)
|
|
|
|
register
|
|
|
|
].
|
|
|
|
"Package loading"
|
|
|
|
localRepo := 'gitlocal://', location fullName.
|
2020-07-18 18:47:11 +00:00
|
|
|
Metacello new
|
2020-07-19 00:52:03 +00:00
|
|
|
repository: localRepo;
|
|
|
|
baseline: 'Grafoscopio-Utils'
|
2020-07-18 18:47:11 +00:00
|
|
|
load.
|
2020-07-19 00:52:03 +00:00
|
|
|
spec baseline: 'Grafoscopio-Utils' with: [ spec repository: localRepo ]
|
|
|
|
|
2020-07-18 18:47:11 +00:00
|
|
|
]
|