Hi
I would like to automate my checkouts for the latest ruby.
Is there are way to do this using the net libraries?
Right now I am using system calls and, of course, I can’t
get around the anonymous login requirement without manual
intervention.
My simple hack is below:
t = Time.now
path = sprintf(“ruby_%d%02d%02d”, t.year, t.month, t.day)
Dir.mkdir(path) unless File.exists?(path)
Dir.chdir(path)
puts Dir.pwd
root = ":pserver:anonymous@cvs.ruby-lang.org:"
cmd = "cvs -d #{root}/src login"
puts cmd
system(cmd)
#(Logging in to anonymous@cvs.ruby-lang.org)
#CVS password: (anonymous)
cmd = "cvs -z4 -d #{root}/src co ruby"
puts cmd
system(cmd)
cmd = "cvs -z4 -d #{root}/src co rubicon"
puts cmd
system(cmd)
Thanks
···
–
Jim Freeze
If you think the problem is bad now, just wait until we’ve solved it.
– Arthur Kasspe