Hi, Iceberg will autodetect the format, or you can use monticello with "tonel://" scheme (in P61 you will need newest iirc metacello). If you want to convert a repo (or create a separate repo in tonel format so you can try it out), I have a migration tool https://github.com/peteruhnak/tonel-migration On Thu, Nov 30, 2017 at 9:22 PM, Juraj Kubelka <juraj.kubelka@icloud.com> wrote:
Hi Hilaire,
I have been playing with it recently. There is my exercise:
myClass := MyDemo. myClassName := MyDemo name. snapshot := (MCPackage new name: myClass package name) snapshot. memory := FileSystem memory. writer := TonelWriter on: memory root. writer writeSnapshot: snapshot."Remove package" myClass package removeFromSystem."Find myClass file" classDefinition := snapshot definitions detect: [ :e | e isClassDefinition and: [ e className = myClassName ] ]. dir := writer packageDir. fileName := writer fileNameFor: classDefinition. (dir / fileName) contents."Read and Install definitions" reader := writer class readerClass on: memory root. reader packageDirectory: dir basename. reader loadDefinitions. reader snapshot install.
Maybe it is what you are asking for.
Cheers, Juraj
On Nov 30, 2017, at 15:36, Hilaire <hilaire@drgeo.eu> wrote:
Hi,
How can I use tonel to load code located in the host filesystem?
Thanks
Hilaire
-- Dr. Geo http://drgeo.eu