I want to automate some Monticello tasks. For this purpose i would have to first choose certain Monticello packages and then i would like to be able to:

  • add repositories,
  • remove repositories,
  • add user and password information for certain (Smalltalkhub) repositories.

I saw there is a small paragraph on "Programmatically adding repositories" in the upcoming Monticello chapter of "Deep into Pharo".

Can Gofer be used to automate tasks like this?

有帮助吗?

解决方案 2

At least I found an answer to my third question:

How to programatically add user and password information for certain (Smalltalkhub) repositories.

(MCRepositoryGroup default repositories
    select: [:each | (each isKindOf: MCHttpRepository)
        and: [each locationWithTrailingSlash includesSubstring: 'http://smalltalkhub.com/mc/MyName/']])
    do: [:each | each user: 'MyName'; password: 'MyPassword'].

The credit goes to "Pharo: Tips and Tricks" by Mariano Martinez Peck

其他提示

Gofer is supposed to be used to programmatically do what you do by hand with the Monticello UI. If you find things missing, please discuss them on the mailing lists.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top