Skip to content
dalehenrich edited this page Mar 11, 2012 · 16 revisions

The Metacello Scripting API is all about manipulating project specs. The project spec in the Metacello Scripting API is very similar to the project spec that you use when defining external references in your proejct baseline:

    spec
        project: 'Gofer'
        with: [ 
            spec
                className: 'ConfigurationOfGofer';
                versionString: '1.0';
                loads: #('Core');
                repository: 'http://seaside.gemstone.com/ss/metacello' ]

with a little bit of streamlining:

    Metacello new
        project: 'Gofer';
        version: '1.0';
        repository: 'http://seaside.gemstone.com/ss/metacello';
        load: 'Core'.

The Metacello Scripting API constructs the className by tacking a 'ConfigurationOf' on the front of the projectName.

Clone this wiki locally