unom
unom

Reputation: 11476

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'.

Upvotes: 2

Views: 81

Answers (3)

Sean DeNigris
Sean DeNigris

Reputation: 6390

For anyone with the same question today, in Pharo 6.x - current (9.0 as of writing):

Metacello new
  baseline: 'Magritte';
  repository: 'github://magritte-metamodel/Magritte';
  load

Upvotes: 0

Stephan Eggermont
Stephan Eggermont

Reputation: 15907

That won't result in working code in a recent version of Pharo. Magritte2 is old and unsupported. Use Magritte3. That is maintained on Smalltalkhub.

Upvotes: 1

EstebanLM
EstebanLM

Reputation: 4357

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 :)

Upvotes: 4

Related Questions