MetacelloBaselineSpecGenerator.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Mon, 03 Sep 2012 13:10:51 +0000
changeset 3 504152ada1fc
parent 1 9e312de5f694
permissions -rw-r--r--
fixed stc-compilability
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
9e312de5f694 - Initial commit
jv
parents:
diff changeset
     1
"{ Package: 'stx:goodies/metacello' }"
9e312de5f694 - Initial commit
jv
parents:
diff changeset
     2
9e312de5f694 - Initial commit
jv
parents:
diff changeset
     3
MetacelloProjectSpecGenerator subclass:#MetacelloBaselineSpecGenerator
9e312de5f694 - Initial commit
jv
parents:
diff changeset
     4
	instanceVariableNames:''
9e312de5f694 - Initial commit
jv
parents:
diff changeset
     5
	classVariableNames:''
9e312de5f694 - Initial commit
jv
parents:
diff changeset
     6
	poolDictionaries:''
9e312de5f694 - Initial commit
jv
parents:
diff changeset
     7
	category:'Metacello-Core-Scripts'
9e312de5f694 - Initial commit
jv
parents:
diff changeset
     8
!
9e312de5f694 - Initial commit
jv
parents:
diff changeset
     9
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    10
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    11
!MetacelloBaselineSpecGenerator methodsFor:'accessing'!
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    12
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    13
projectSpecCreationBlock
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    14
    ^ [ :projectName | {(MetacelloMCBaselineProject new baselineOfProjectSpec name: projectName)} ]
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    15
!
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    16
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    17
projectSpecListBlock
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    18
    ^ [ MetacelloProjectRegistration baselineProjectSpecs ]
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    19
!
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    20
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    21
projectSpecLookupBlock
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    22
    ^ [ :projectName | 
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    23
    {(MetacelloProjectRegistration
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    24
        projectSpecForClassNamed: (MetacelloScriptEngine baselineNameFrom: projectName)
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    25
        ifAbsent: [  ])} ]
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    26
! !
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    27
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    28
!MetacelloBaselineSpecGenerator class methodsFor:'documentation'!
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    29
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    30
version_SVN
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    31
    ^ '$Id::                                                                                                                        $'
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    32
! !