[Pharo-dev] pattern for configuration definition

Stéphane Ducasse stephane.ducasse at inria.fr
Sat Aug 10 03:35:04 EDT 2013


Hi camillo

I like the pattern damien told me you are applying for your configuration.
Could you explain them?
I understood:

baseline48: spec 
	<version: '4.8-baseline'>

spec repository: 'http://www.smalltalkhub.com/mc/Moose/Moose/main'.
…
spec project: 'Metanool' with: [
				spec
					className: 'ConfigurationOfMetanool';
					version: #development;
					file:  'ConfigurationOfMetanool';
					repository: 'http://www.smalltalkhub.com/mc/Moose/Metanool/main' ].

…

=> 

baseline48: spec 
	<version: '4.8-baseline'>

spec repository: self repositoryUrlString
…
spec project: 'Metanool' with: [
				spec
					className: 'ConfigurationOfMetanool';
					version: #development;
					file:  'ConfigurationOfMetanool';
					repository: 'http://www.smalltalkhub.com/mc/Moose/Metanool/main' ].

…

repositoryUrlString
	^ 'http://www.smalltalkhub.com/mc/Moose/Moose/main'.

specMetanoolConfiguration: spec

	spec
					className: 'ConfigurationOfMetanool';
					version: #development;
					file:  'ConfigurationOfMetanool';
					repository: 'http://www.smalltalkhub.com/mc/Moose/Metanool/main' 




I like the idea to avoid duplication at the configuration level.
Now damien mention a dev and stable baseline

Stef






More information about the Pharo-dev mailing list