/hermes

Primary LanguageSmalltalkMIT LicenseMIT

Hermes

Usage

For exporting it should be something like:

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:

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.