Re: Issue 157 in metacello: means for adding repository to package from MetacelloToolBox

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: Issue 157 in metacello: means for adding repository to package from MetacelloToolBox

metacello
Updates:
        Summary: means for adding repository to package from MetacelloToolBox
        Labels: -Type-Defect Type-Feature

Comment #1 on issue 157 by [hidden email]: means for adding  
repository to package from MetacelloToolBox
http://code.google.com/p/metacello/issues/detail?id=157

(No comment was entered for this change.)

Reply | Threaded
Open this post in threaded view
|

Re: Issue 157 in metacello: means for adding repository to package from MetacelloToolBox

metacello
Updates:
        Labels: Milestone-1.0-beta.32

Comment #2 on issue 157 by [hidden email]: means for adding  
repository to package from MetacelloToolBox
http://code.google.com/p/metacello/issues/detail?id=157

(No comment was entered for this change.)

Reply | Threaded
Open this post in threaded view
|

Re: Issue 157 in metacello: means for adding repository to package from MetacelloToolBox

metacello

Comment #3 on issue 157 by [hidden email]: means for adding  
repository to package from MetacelloToolBox
http://code.google.com/p/metacello/issues/detail?id=157

 From Issue 158, the method MetacelloTooBox  
class>>modifyVersion:section:for:repository:requiredProjects:packages:dependencies:includes:files:repositories:preLoadDoIts:postLoadDoIts:supplyingAnswers:groups:  
can also be used to add a repository.

In MetacelloTooBoxAPITestCase>>testComplexModifyBaseline, the following was  
used to dd a package and dependency to version '1.1-baseline':

     MetacelloToolBox
         modifyVersion: '1.1-baseline'
         section: #'common'
         for: self configurationName asString
         repository: nil
         requiredProjects: #()
         packages: #('GoferFoo')
         dependencies: {('GeauxFaux' -> #('GoferFoo'))}
         includes: #()
         files: #()
         repositories: #()
         preLoadDoIts: #()
         postLoadDoIts: #()
         supplyingAnswers: #()
         groups: #().

To add a repository for a particular package (say GoferFoo) you would do  
the following:


     MetacelloToolBox
         modifyVersion: '1.1-baseline'
         section: #'common'
         for: self configurationName asString
         repository: nil
         requiredProjects: #()
         packages: #(')
         dependencies: #()
         includes: #()
         files: #()
         repositories: {('GoferFoo' ->  
#('http://www.squeaksource.com/CommandShell'))}
         preLoadDoIts: #()
         postLoadDoIts: #()
         supplyingAnswers: #()
         groups: #().