Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pharo-project/hermes
https://github.com/pharo-project/hermes
pharo
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pharo-project/hermes
- Owner: pharo-project
- License: mit
- Created: 2017-02-24T10:33:43.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-10-17T14:26:36.000Z (about 1 year ago)
- Last Synced: 2024-09-26T21:24:16.513Z (4 months ago)
- Topics: pharo
- Language: Smalltalk
- Size: 318 KB
- Stars: 3
- Watchers: 6
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hermes
## Usage
For exporting it should be something like:
```smalltalk
fileReference := ('sunit.hermes') asFileReference.
fileName := fileReference fullName.
writer := HEBinaryReaderWriter new
stream: (File openForWriteFileNamed:fileName);
yourself.oldPackage := RPackageOrganizer default packageNamed: #'SUnit-Core'.
hePackage := HEPackage for: oldPackage.
hePackage writeInto: writer.writer stream flush.
```
And for installing back in the system just do:
```smalltalk
fileReference := ('sunit.hermes') asFileReference.
filename := fileReference fullName.reader := HEBinaryReaderWriter new
stream: (File openForReadFileNamed:filename);
yourself.readPackage := HEPackage readFrom: reader.
installer := HEInstaller new.
installer installPackage: readPackage.
```