Hello everybody,
attached are a couple of Ruby scripts you might find interesting for
interfacing to Continuum from the shell, SVN etc.
Regards,
--
Karl-Martin Skontorp
http://skontorp.net/
#!/usr/bin/ruby1.8
require 'xmlrpc/client'
server = XMLRPC::Client.new2("http://milhouse.intern.yoyo.no:8000/")
projects = server.call("continuum.getProjects")
ids = Array.new
if ARGV[0] == "--force" then
trigger = 1
else
trigger = 0
end
for project in projects["projects"]
ids.push(project["id"].to_i)
end
for id in ids
server.call("continuum.buildProject", id, trigger)
end
#!/usr/bin/ruby1.8
require 'xmlrpc/client'
server = XMLRPC::Client.new2("http://milhouse.intern.yoyo.no:8000/")
projects = server.call("continuum.getProjects")
for project in projects["projects"]
if project["state"] == "3" or project["state"] == "4" then
exit(1)
end
end