Indexing suggested repositories.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2023-03-05 17:21:23 -05:00
parent 95fbf39088
commit 572c96f274
1 changed files with 17 additions and 1 deletions

View File

@ -7,6 +7,16 @@ Class {
#category : #ExoRepo
}
{ #category : #accessing }
ExoRepo class >> index [
"I list a set of external recommended repositories from the Grafoscopio community, in installation order."
| reposIndex repositoryAddresses|
repositoryAddresses := #('https://code.sustrato.red/Offray/MiniDocs').
reposIndex := OrderedCollection new.
repositoryAddresses do: [:adress | reposIndex add: (ExoRepo new repository: adress) ].
^ reposIndex
]
{ #category : #accessing }
ExoRepo >> load [
"I load the configuration of this package using a external Gitea repository."
@ -45,6 +55,12 @@ ExoRepo >> local [
^ FileLocator localDirectory / 'iceberg' / (self provider) / self repositoryName
]
{ #category : #accessing }
ExoRepo >> printOn: aStream [
super initialize.
aStream nextPutAll: self repositoryName, ' | ', self repository asString
]
{ #category : #accessing }
ExoRepo >> provider [
self repository ifNil: [ ^ nil ].
@ -69,6 +85,6 @@ ExoRepo >> repositoryName [
{ #category : #accessing }
ExoRepo >> wiki [
^ (self local / 'Wiki') ensureCreateDirectory.
^ (self local / 'wiki') ensureCreateDirectory.
]