i used to do this | myRepo myRepoDir | myRepoDir := FileDirectory on:'/home/vonbecmann/repo'. myRepo := MCDirectoryRepository new directory: myRepoDir. MCRepositoryGroup default addRepository: myRepo.
in order to add my directory repository. "Ken G. Brown's idea" All in one go if you like: MCRepositoryGroup default addRepository: (MCDirectoryRepository new directory: (FileDirectory on: '/myLocalMCRepositoryPath/MyPackage/')). "Hernan Durand's idea" | repositories | repositories := MCRepositoryGroup default. { (MCHttpRepository location: 'http://www.squeaksource.com/Phantasia' user: '' password: ''). (MCHttpRepository location: 'http://www.squeaksource.com/SmallFaces' user: '' password: ''). } do: [ : aRepository | repositories addRepository: aRepository ] And if you read this article https://pharoweekly.wordpress.com/2014/07/26/a-pharolauncher-lover/ in the script part there are some useful ways to set the username and password. Regards On Tue, Mar 24, 2015 at 6:52 PM, Jan B. <blizn...@fit.cvut.cz> wrote: > Hello > > I would like to ask how to simply add a repository into monticello without > using monticello GUI's button +Repository, but by code. > If I'm loading baseline or configuration via Gofer or Metacello, it creates > repository automatically, but I don't want to load anything, what I need is > just something like... > Metacello new repository: 'filetree:///aPath'; create. > What is the correct command? > > Jan > > > > -- > View this message in context: > http://forum.world.st/Code-to-create-a-repository-tp4814923.html > Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com. > > -- Bernardo E.C. Sent from a cheap desktop computer in South America.