2017-09-05 12:18:08 +00:00
"
I am ConfigurationOfBrea a Metacello configuration of Brea .
Brea is a simple dynamic distributed web site generator for public
& open data
For more information about this please visit:
h t t p : / / smalltalkhub . com / #!/~ Offray / Brea
"
Class {
#name : # ConfigurationOfBrea ,
#superclass : # Object ,
#instVars : [
'project'
],
#classVars : [
'LastVersionLoad'
],
#category : # ConfigurationOfBrea
}
{ #category : # ' development support ' }
ConfigurationOfBrea class >> DevelopmentSupport [
"See the methods in the 'development support' category on the class-side of MetacelloBaseConfiguration. Decide what development support methods you would like to use and copy them the the class-side of your configuration."
< apiDocumentation >
]
{ #category : # private }
ConfigurationOfBrea class >> baseConfigurationClassIfAbsent: aBlock [
^ Smalltalk
a t : # 'ConfigurationOf'
i f A b s e n t : [
self ensureMetacelloBaseConfiguration .
Smalltalk at: # 'ConfigurationOf' ifAbsent: aBlock ].
]
{ #category : # private }
ConfigurationOfBrea class >> ensureMetacello [
(self baseConfigurationClassIfAbsent: []) ensureMetacello
]
{ #category : # private }
ConfigurationOfBrea class >> ensureMetacelloBaseConfiguration [
Smalltalk
a t : # 'ConfigurationOf'
i f A b s e n t : [
| repository version |
repository := MCHttpRepository
l o c a t i o n : 'http://smalltalkhub.com/mc/dkh/metacello/main'
u s e r : ''
p a s s w o r d : '' .
repository
v e r s i o n R e a d e r F o r F i l e N a m e d : 'Metacello-Base-dkh.107'
d o : [ : reader |
version := reader version .
version load .
version workingCopy repositoryGroup addRepository: repository ] ]
]
{ #category : # ' metacello tool support ' }
ConfigurationOfBrea class >> isMetacelloConfig [
"Answer true and the Metacello tools will operate on you"
^ true
]
{ #category : # loading }
ConfigurationOfBrea class >> load [
"Load the #stable version defined for this platform. The #stable version is the version that is recommended to be used on this platform."
"self load"
< apiDocumentation >
^ (self project version: #stable ) load
]
{ #category : # loading }
ConfigurationOfBrea class >> loadBleedingEdge [
"Load the latest versions of the mcz files defined for this project. It is not likely that the #bleedingEdge has been tested."
"self loadBleedingEdge"
< apiDocumentation >
^ (self project version: #bleedingEdge ) load
]
{ #category : # loading }
ConfigurationOfBrea class >> loadDevelopment [
"Load the #development version defined for this platform. The #development version will change over time and is not expected to be stable."
"self loadDevelopment"
< apiDocumentation >
^ (self project version: #development ) load
]
{ #category : # accessing }
ConfigurationOfBrea class >> project [
^ self new project
]
{ #category : # ' development support ' }
ConfigurationOfBrea class >> validate [
" Check the configuration for Errors , Critical Warnings , and Warnings (see class comment for MetacelloMCVersionValidator for more information ).
Errors identify specification issues that will result in unexpected behaviour when you load the configuration .
Critical Warnings identify specification issues that may result in unexpected behavior when you load the configuration .
Warnings identify specification issues that are technically correct , but are worth take a look at . "
"self validate"
< apiDocumentation >
self ensureMetacello .
^ ((Smalltalk at: #MetacelloToolBox ) validateConfiguration: self debug: #( ) recurse: false ) explore
]
{ #category : # baselines }
ConfigurationOfBrea >> baseline1: spec [
<version: '1-baseline'>
spec for: #common do: [
spec
b l e s s i n g : #baseline ;
r e p o s i t o r y : 'http://smalltalkhub.com/mc/Offray/Brea/main' ;
p a c k a g e : 'Brea' .
spec
2017-09-05 12:33:43 +00:00
p a c k a g e : 'Fossil' with: [
2017-09-05 12:18:08 +00:00
spec
c l a s s N a m e : #ConfigurationOfFossil ;
v e r s i o n S t r i n g : # 'stable' ;
r e p o s i t o r y : 'http://smalltalkhub.com/mc/Offray/Fossil/main' ]]
]
{ #category : # accessing }
ConfigurationOfBrea >> customProjectAttributes [
" Edit to return a collection of any custom attributes e . g . for conditional loading: Array with: # 'Condition1' with: # ' Condition2 .
For more information see: h t t p : / / code . google . com / p / metacello / wiki / CustomProjectAttrributes "
^ #( )
]
{ #category : # accessing }
ConfigurationOfBrea >> project [
^ project
i f N i l : [
"Bootstrap Metacello if it is not already loaded"
self class ensureMetacello .
project := MetacelloMCProject new projectAttributes: self customProjectAttributes . "Create the Metacello project"
(Smalltalk at: # 'MetacelloVersionConstructor' ) on: self project: project . "Construct the project"
project loadType: # 'linear' . "change to #atomic if desired"
project ]
]
{ #category : # ' symbolic versions ' }
ConfigurationOfBrea >> stable: spec [
<symbolicVersion: #'stable'>
spec for: #common version: '1'
]
{ #category : # ' symbolic versions ' }
ConfigurationOfBrea >> version1: spec [
2017-09-05 12:41:03 +00:00
<version: '1' imports: #('1-baseline')>
2017-09-05 12:18:08 +00:00
spec for: #common do: [
spec
b l e s s i n g : #release ;
2017-09-05 12:24:48 +00:00
p a c k a g e : 'Brea' with: 'Brea-OffrayLuna.8' ;
2017-09-05 12:18:08 +00:00
p a c k a g e : 'Fossil' with: # 'stable' ]
]