forked from dalehenrich/CypressReferenceImplementation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVWFileOutPackages.ws
38 lines (38 loc) · 1.33 KB
/
VWFileOutPackages.ws
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
"
| path packages fileOuts |
packages := #('Cypress-Definitions' 'Cypress-Mocks' 'Cypress-Structure' 'Cypress-Tests' 'Cypress-GemStoneFileServer').
path := 'C:\CypressReferenceImplementation\'.
fileOuts := GBSM currentSession
evaluate: 'CypressPackageDefinition fileOutsForPackagesNamed: self'
context: packages.
fileOuts keysAndValuesDo: [:packageName :fileOut |
(Filename named: path, packageName, '.gs') writeStream
nextPutAll: fileOut;
close
].
"
"
CypressPackageWriter
writePackageStructure: (CypressPackageStructure fromPackage: (CypressPackageDefinition named: 'Cypress-Mocks'))
to: '/opt/git/CypressReferenceImplementation/'
"
"
CypressPackageReader
readPackageStructureFrom: '/opt/git/CypressReferenceImplementation/Cypress-Mocks.package'
"
"
| path packages fileOuts |
packages := #('Cypress-Definitions' 'Cypress-Mocks' 'Cypress-Structure' 'Cypress-Tests' 'Cypress-GemStoneFileServer' 'Cypress-Comparison').
path := '/opt/git/CypressReferenceImplementation/'.
packages do: [:each |
CypressPackageWriter
writePackageStructure: (CypressPackageStructure fromPackage: (CypressPackageDefinition named: each))
to: path.
].
fileOuts := CypressPackageDefinition fileOutsForPackagesNamed: packages.
fileOuts keysAndValuesDo: [:packageName :fileOut |
(GsFile openWriteOnServer: path, packageName, '.gs')
nextPutAll: fileOut;
close
].
"