Migrating configurations.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2022-12-26 17:09:20 -05:00
parent 09a303e18a
commit ba2235f83c
1 changed files with 79 additions and 0 deletions

View File

@ -17,6 +17,22 @@ ConfigurationOfShortener class >> DevelopmentSupport [
<apiDocumentation>
]
{ #category : #private }
ConfigurationOfShortener class >> baseConfigurationClassIfAbsent: aBlock [
^ Smalltalk
at: #'ConfigurationOf'
ifAbsent: [
self ensureMetacelloBaseConfiguration.
Smalltalk at: #'ConfigurationOf' ifAbsent: aBlock ].
]
{ #category : #private }
ConfigurationOfShortener class >> ensureMetacello [
(self baseConfigurationClassIfAbsent: [ ]) ensureMetacello
]
{ #category : #private }
ConfigurationOfShortener class >> ensureMetacelloBaseConfiguration [
Smalltalk
@ -35,6 +51,49 @@ ConfigurationOfShortener class >> ensureMetacelloBaseConfiguration [
version workingCopy repositoryGroup addRepository: repository ] ]
]
{ #category : #'metacello tool support' }
ConfigurationOfShortener class >> isMetacelloConfig [
"Answer true and the Metacello tools will operate on you"
^ true
]
{ #category : #loading }
ConfigurationOfShortener 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 }
ConfigurationOfShortener 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 }
ConfigurationOfShortener 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 }
ConfigurationOfShortener class >> project [
^ self new project
]
{ #category : #'development support' }
ConfigurationOfShortener class >> validate [
"Check the configuration for Errors, Critical Warnings, and Warnings (see class comment for MetacelloMCVersionValidator for more information).
@ -49,6 +108,16 @@ ConfigurationOfShortener class >> validate [
^ ((Smalltalk at: #MetacelloToolBox) validateConfiguration: self debug: #() recurse: false) explore
]
{ #category : #baselines }
ConfigurationOfShortener >> baseline: spec [
<version: '1-baseline'>
spec for: #common do: [
spec
blessing: #baseline;
repository: 'http://smalltalkhub.com/Offray/Shortener/main';
package: 'Shortener' ]
]
{ #category : #accessing }
ConfigurationOfShortener >> customProjectAttributes [
"Edit to return a collection of any custom attributes e.g. for conditional loading: Array with: #'Condition1' with: #'Condition2.
@ -74,3 +143,13 @@ ConfigurationOfShortener >> stable: spec [
<symbolicVersion: #'stable'>
spec for: #common version: '1'
]
{ #category : #versions }
ConfigurationOfShortener >> version: spec [
<version: '1' imports: #('1-baseline')>
spec for: #common do: [
spec
blessing: #release;
package: 'Shortener'
with: 'Shortener-OffrayLuna.2' ]
]