質問

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