Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pharo-project/hermes


https://github.com/pharo-project/hermes

pharo

Last synced: 3 months ago
JSON representation

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.
```