Search code examples
smalltalkpharo

What is the equivalent of 'Installer squeaksource' in Pharo?


I want to execute this in the context of Pharo, was initially for Squeak.

Installer squeaksource
 project: 'MetacelloRepository';
 install: 'ConfigurationOfMagritte2'.
(Smalltalk at: #ConfigurationOfMagritte2) project latestVersion load: 'Magritte-Seaside'.

Solution

  • This code will work:

    Gofer new 
        squeaksource: 'MetacelloRepository';
        configurationOf: 'Magritte2';
        load.
    (Smalltalk at: #ConfigurationOfMagritte2) project latestVersion load: 'Magritte-Seaside'.
    

    There are other ways, but this is the most "direct" translation :)