Created
September 27, 2010 21:07
-
-
Save knowuh/599838 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /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