Indexing suggested repositories.
This commit is contained in:
parent
95fbf39088
commit
572c96f274
@ -7,6 +7,16 @@ Class {
|
|||||||
#category : #ExoRepo
|
#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 }
|
{ #category : #accessing }
|
||||||
ExoRepo >> load [
|
ExoRepo >> load [
|
||||||
"I load the configuration of this package using a external Gitea repository."
|
"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
|
^ FileLocator localDirectory / 'iceberg' / (self provider) / self repositoryName
|
||||||
]
|
]
|
||||||
|
|
||||||
|
{ #category : #accessing }
|
||||||
|
ExoRepo >> printOn: aStream [
|
||||||
|
super initialize.
|
||||||
|
aStream nextPutAll: self repositoryName, ' | ', self repository asString
|
||||||
|
]
|
||||||
|
|
||||||
{ #category : #accessing }
|
{ #category : #accessing }
|
||||||
ExoRepo >> provider [
|
ExoRepo >> provider [
|
||||||
self repository ifNil: [ ^ nil ].
|
self repository ifNil: [ ^ nil ].
|
||||||
@ -69,6 +85,6 @@ ExoRepo >> repositoryName [
|
|||||||
|
|
||||||
{ #category : #accessing }
|
{ #category : #accessing }
|
||||||
ExoRepo >> wiki [
|
ExoRepo >> wiki [
|
||||||
^ (self local / 'Wiki') ensureCreateDirectory.
|
^ (self local / 'wiki') ensureCreateDirectory.
|
||||||
|
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user