Top Level Namespace
Defined Under Namespace
Instance Method Summary collapse
Instance Method Details
#find_svn_url(host_name) ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/hudkins/sysinfo.rb', line 3 def find_svn_url host_name url = "http://example.com/_priv/sysinfo" uri = URI.parse url uri.host = host_name body = RestClient.get uri.to_s # is there a better way to do this? Rservices and Syndication differ in where # they put this info svn_url = body.scan(/repository":"([^ ]*) r\d*",/).first end |