From memory - the Excercism project does this too (can't recall if it uses CodeImporter, but it does get source from Exercism and load it into the image).
Having said this - are you sure you don't want to have some versioned packed in git that your image can load up when needed? It would add a version control element for you which might make sense. Tim On Mon, 4 Apr 2022, at 2:15 PM, Davide Varvello via Pharo-users wrote:
Thanks Markus It seems CodeImporter is the right tool
Davide
On Monday, April 4, 2022, 11:41:50 AM GMT+2, Marcus Denker <marcus.denker@inria.fr> wrote:
On 1 Apr 2022, at 18:35, Davide Varvello via Pharo-users <pharo-users@lists.pharo.org> wrote: Hi Folks!
For a customer of mine I want to download a bunch of new code from my webserver and installing it in a running Pharo image, is there a feasible way to do it?
Maybe you could just have file-outs on the server and then just load it with CodeImporter?
Reading from a URL:
ZnClient new get: âsomeURLâ.
Loading file outs from a String:
CodeImporter class>>#evaluateString:
Marcus