beta/migration #3
@ -13,38 +13,15 @@ BaselineOfGrafoscopio >> baseline: spec [
|
|||||||
do: [
|
do: [
|
||||||
|
|
||||||
"Dependencies"
|
"Dependencies"
|
||||||
self fossil: spec.
|
self grafoscopioUtils: spec.
|
||||||
spec
|
spec
|
||||||
package: 'Spec-Glamour'
|
package: 'Spec-Glamour'
|
||||||
with: [ spec repository: 'http://smalltalkhub.com/mc/jfabry/Playgroudn/main/' ].
|
with: [ spec repository: 'http://smalltalkhub.com/mc/jfabry/Playgroudn/main/' ].
|
||||||
|
|
||||||
"Packages"
|
"Packages"
|
||||||
self grafoscopioUtils: spec.
|
|
||||||
spec
|
spec
|
||||||
package: 'Grafoscopio' with: [ spec requires: #('Grafoscopio-Utils' 'Spec-Glamour' ) ]
|
package: 'Grafoscopio' with: [ spec requires: #('Grafoscopio-Utils' 'Spec-Glamour' ) ]
|
||||||
]
|
]
|
||||||
|
|
||||||
]
|
|
||||||
|
|
||||||
{ #category : #'as yet unclassified' }
|
|
||||||
BaselineOfGrafoscopio >> fossil: spec [
|
|
||||||
"I load the configuration of Fossil 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 |
|
|
||||||
location := FileLocator localDirectory / 'iceberg' / 'Offray' / 'Fossil'.
|
|
||||||
(IceRepositoryCreator new
|
|
||||||
location: location;
|
|
||||||
remote: (IceGitRemote url: 'https://code.tupale.co/Offray/Fossil.git');
|
|
||||||
createRepository)
|
|
||||||
register.
|
|
||||||
|
|
||||||
Metacello new
|
|
||||||
repository: 'gitlocal://', location fullName;
|
|
||||||
baseline: 'Fossil';
|
|
||||||
load.
|
|
||||||
spec project: 'Fossil'
|
|
||||||
]
|
]
|
||||||
|
|
||||||
{ #category : #'as yet unclassified' }
|
{ #category : #'as yet unclassified' }
|
||||||
@ -53,16 +30,24 @@ BaselineOfGrafoscopio >> grafoscopioUtils: spec [
|
|||||||
"While more Git independient providers are implemented in Monticello, I will use Iceberg
|
"While more Git independient providers are implemented in Monticello, I will use Iceberg
|
||||||
to download the repository and load it from a local directory"
|
to download the repository and load it from a local directory"
|
||||||
|
|
||||||
| location |
|
| location localRepo |
|
||||||
location := FileLocator localDirectory / 'iceberg' / 'Offray' / 'GrafoscopioUtils'.
|
"Dependencies"
|
||||||
(IceRepositoryCreator new
|
|
||||||
location: location;
|
|
||||||
remote: (IceGitRemote url: 'https://code.tupale.co/Offray/GrafoscopioUtils.git');
|
|
||||||
createRepository)
|
|
||||||
register.
|
|
||||||
|
|
||||||
|
"Local and remote repo definition"
|
||||||
|
location := FileLocator localDirectory / 'iceberg' / 'Offray' / 'GrafoscopioUtils'.
|
||||||
|
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.
|
||||||
Metacello new
|
Metacello new
|
||||||
repository: 'gitlocal://', location fullName;
|
repository: localRepo;
|
||||||
|
baseline: 'Grafoscopio-Utils'
|
||||||
load.
|
load.
|
||||||
spec project: 'Grafoscopio-Utils' with: [ spec requires: #('Fossil') ].
|
spec baseline: 'Grafoscopio-Utils' with: [ spec repository: localRepo ]
|
||||||
|
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user