Hi Denis! Thanks.��
There is an class called SCImageBundle. It represents the folder where you downloaded a pharo+vm. So you can instantiate it by hand��
SCImageBundle new directory: 'path' asFileReference.��
in any case, this is also the return of the following messages of the system object:
#loadPharo: aVersion into: aFileReference
#loadBaseline: aPackageName from: aRepository into: anImageBundle andSaveItAt: aDirectory
#loadBaselineUI: aPackageName from: aRepository into: anImageBundle andSaveItAt: aDirectory
So you can do something like��
(system home / #pharo) ensureCreateDirectory.
pharo5 := system loadPharo: 50 into: system home / #pharo.
pharo5WithScale := system loadBaseline: 'Scale' from: 'github://path' into: pharo5.
Save after run just sets a flag. If to the end of the execution is on, it saves the image before shutting it down.��
If the script you are running is supposed to update the same image that is running you have to use this method (and run as sudo)��
Really nice project, Santiago.
I have few questions:
- what "system saveAfterRun" actually do?
As I understand it saves image when script completes. Imaging during script I loaded Seaside. Does this command makes Seaside accessible from any scale scripts?
-��system execute: aString into: anImageBundle
What is anImageBundle here?
- What you think to make scripts working as workspace? All undeclared variables will be added to environment automatically. And in case of saveAfterRun they will became accessible from any scale scripts.