core/MetacelloAllowProjectUpgrade.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Tue, 18 Sep 2012 18:24:44 +0000
changeset 16 25ac697dc747
parent 14 f01fe37493e9
permissions -rw-r--r--
- Updated from branch master

"{ Package: 'stx:goodies/metacello/core' }"

MetacelloResolveProjectUpgrade subclass:#MetacelloAllowProjectUpgrade
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'Metacello-Core-Scripts'
!


!MetacelloAllowProjectUpgrade methodsFor:'accessing'!

operationString
    ^ 'upgrade'
! !

!MetacelloAllowProjectUpgrade methodsFor:'exception handling'!

defaultAction
    "Default for Upgrade is to allow"

    self checkAllowed.
    ^ self newProjectRegistration
! !

!MetacelloAllowProjectUpgrade methodsFor:'handlers'!

handleOnDownGrade: onDownGradeBlock onUpgrade: onUpgradeBlock
    ^ onUpgradeBlock cull: self cull: self existingProjectRegistration cull: self newProjectRegistration
!

handleResolutionFor: aScriptEngine
    ^ aScriptEngine handleUpgrade: self
! !

!MetacelloAllowProjectUpgrade class methodsFor:'documentation'!

version_SVN
    ^ '$Id::                                                                                                                        $'
! !