-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathexample.st
22 lines (20 loc) · 1.13 KB
/
example.st
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
"Example of loading information about packages from the cypress repository and writing the
corresponding Topaz and chunk-format files in separate directories."
| packageManager repo topazRepo chunkRepo |
packageManager := CypressPackageManager2 new.
repo := CypressAbstractRepository
onUrl: 'cypress:/export/galbadia1/users/rsargent/git/CypressReferenceImplementation/cypress/' asUrl
alias: 'Reference Implementation'.
packageManager lookForPackagesInRepository: repo.
topazRepo := CypressAbstractRepository
onUrl: 'topaz:/export/galbadia1/users/rsargent/git/CypressReferenceImplementation/topaz/' asUrl
alias: 'Reference Implementation'.
chunkRepo := CypressAbstractRepository
onUrl: 'chunk:/export/galbadia1/users/rsargent/git/CypressReferenceImplementation/fileout/' asUrl
alias: 'Reference Implementation'.
packageManager packageInformationList
do: [:each |
packageManager
assignRepository: topazRepo to: each;
assignRepository: chunkRepo to: each;
writeChangesToAllRepositoriesFor: each].