Sending a list of mcz to SmalltalkHub

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

Sending a list of mcz to SmalltalkHub

Damien Cassou
Hi,

imagine you have a list of mcz files you want to push to SmalltalkHub. This list can for example come from a project on SqueakSource. Here is how to push each mcz:

repo :=  MCSmalltalkhubRepository owner: ... project: ... user: ... password: ...
go := Gofer new.
go repository: repo.
#('Magritte-Tests-Model-DamienCassou.28.mcz' 'Magritte-Model-NickAger.429.mcz'  ...)
     do: [ :name | go version: (name copyUpToLast: $.) ].
go push

--
Damien Cassou
http://damiencassou.seasidehosting.st

"Success is the ability to go from one failure to another without losing enthusiasm."
Winston Churchill
Reply | Threaded
Open this post in threaded view
|

Re: Sending a list of mcz to SmalltalkHub

Max Leske
Awesome, thanks!

On 07.03.2013, at 15:07, Damien Cassou <[hidden email]> wrote:

Hi,

imagine you have a list of mcz files you want to push to SmalltalkHub. This list can for example come from a project on SqueakSource. Here is how to push each mcz:

repo :=  MCSmalltalkhubRepository owner: ... project: ... user: ... password: ...
go := Gofer new.
go repository: repo.
#('Magritte-Tests-Model-DamienCassou.28.mcz' 'Magritte-Model-NickAger.429.mcz'  ...)
     do: [ :name | go version: (name copyUpToLast: $.) ].
go push

--
Damien Cassou
http://damiencassou.seasidehosting.st

"Success is the ability to go from one failure to another without losing enthusiasm."
Winston Churchill