Le 05/03/2016 12:08, Peter Uhnák a écrit : > Hi, > > is it possible to add credentials to an existing repo via a script? > > I've tried something like > > ~~~~~~~~~~~~~~~~~~~~~~~~~ > |repo| > repo := MCSmalltalkhubRepository allInstances detect: [ :each | each > location includesSubstring: 'Pharo50Inbox' ]. > repo > user: 'peteruhnak'; > password: '******' > ~~~~~~~~~~~~~~~~~~~~~~~~~~ > > but it has no effect. > > Thanks, > Peter
MCRepositoryGroup default removeRepository: (MCSmalltalkhubRepository owner: 'Pharo' project: 'Pharo50Inbox'). MCRepositoryGroup default addRepository: (MCSmalltalkhubRepository owner: 'Pharo' project: 'Pharo50Inbox' user: 'peteruhnak' password: '******' ). Not sure you need the remove part but it should de the trick :) -- Cyril Ferlicot http://www.synectique.eu 165 Avenue Bretagne Lille 59000 France
signature.asc
Description: OpenPGP digital signature