Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save philippeback/a8052ce572a687ebe830d301121268dc to your computer and use it in GitHub Desktop.
Save philippeback/a8052ce572a687ebe830d301121268dc to your computer and use it in GitHub Desktop.
Sample Metacello Workflow
"Describe Project Structure to Create configuration"
MetacelloToolBox
createBaseline: '1.0-baseline'
for: 'SimpleApplescript' "Project name"
repository: 'http://squeaksource.com/SPDPlayground'
requiredProjects: #('OSProcess')
packages: #('CommandShell-Piping' 'SimpleApplescript')
repositories: #()
dependencies: {
('SimpleApplescript' -> #('CommandShell-Piping')).
('CommandShell-Piping' -> #('OSProcess')) }
groups: { ('default' -> #('SimpleApplescript')) }.
"Create a development version"
MetacelloToolBox
createDevelopment: '1.0'
for: 'SimpleApplescript'
importFromBaseline: '1.0-baseline'
description: 'initial development version'.
"Make sure our configuration is valid"
MetacelloToolBox validateConfiguration: ConfigurationOfSimpleApplescript.
"Commit the configuration (usually to the project's repository"
Gofer new
url: 'http://squeaksource.com/SPDPlayground';
package: 'ConfigurationOfSimpleApplescript';
commit: 'Initial version of configuration'.
"Share it - copy the configuration to the community configuration repository"
MetacelloToolBox
releaseDevelopmentVersionIn: ConfigurationOfSimpleApplescript
description: '- release version 1.0'.
MetacelloToolBox
copyConfiguration: ConfigurationOfSimpleApplescript
to: 'http://www.squeaksource.com/MetacelloRepository'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment