Skip to content

Instantly share code, notes, and snippets.

@knowuh
Created September 27, 2010 21:07
Show Gist options
  • Select an option

  • Save knowuh/599838 to your computer and use it in GitHub Desktop.

Select an option

Save knowuh/599838 to your computer and use it in GitHub Desktop.
#! /usr/bin/ruby
files = ["udl_otml_2010","udl_reports_2010"]
require "cgi"
cgi = CGI.new("html4")
params = cgi.params
# umn... lets do something better...
files.each do |file|
puts %x|cd ../#{file}|
puts %x|git pull|
end
# pretend everything is OK, even if the above failed.
cgi.out {
cgi.html {
cgi.head { cgi.title{"ok"} } +
cgi.body { cgi.pre{"ok"} }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment