1
|
1 |
"{ Package: 'stx:goodies/metacello' }"
|
|
2 |
|
|
3 |
MetacelloResolveProjectUpgrade subclass:#MetacelloAllowProjectUpgrade
|
|
4 |
instanceVariableNames:''
|
|
5 |
classVariableNames:''
|
|
6 |
poolDictionaries:''
|
|
7 |
category:'Metacello-Core-Scripts'
|
|
8 |
!
|
|
9 |
|
|
10 |
|
|
11 |
!MetacelloAllowProjectUpgrade methodsFor:'accessing'!
|
|
12 |
|
|
13 |
operationString
|
|
14 |
^ 'upgrade'
|
|
15 |
! !
|
|
16 |
|
|
17 |
!MetacelloAllowProjectUpgrade methodsFor:'exception handling'!
|
|
18 |
|
|
19 |
defaultAction
|
|
20 |
"Default for Upgrade is to allow"
|
|
21 |
|
|
22 |
self checkAllowed.
|
|
23 |
^ self newProjectRegistration
|
|
24 |
! !
|
|
25 |
|
|
26 |
!MetacelloAllowProjectUpgrade methodsFor:'handlers'!
|
|
27 |
|
|
28 |
handleOnDownGrade: onDownGradeBlock onUpgrade: onUpgradeBlock
|
|
29 |
^ onUpgradeBlock cull: self cull: self existingProjectRegistration cull: self newProjectRegistration
|
|
30 |
!
|
|
31 |
|
|
32 |
handleResolutionFor: aScriptEngine
|
|
33 |
^ aScriptEngine handleUpgrade: self
|
|
34 |
! !
|
|
35 |
|
|
36 |
!MetacelloAllowProjectUpgrade class methodsFor:'documentation'!
|
|
37 |
|
|
38 |
version_SVN
|
|
39 |
^ '$Id:: $'
|
|
40 |
! !
|