Major cleanup

This commit is contained in:
Omar Roth
2018-08-04 23:07:38 -05:00
parent 5d4198c700
commit b9315bc534
10 changed files with 340 additions and 483 deletions

View File

@@ -127,3 +127,13 @@ def arg_array(array, start = 1)
return args
end
def make_host_url(ssl, host)
if ssl
scheme = "https://"
else
scheme = "http://"
end
return "#{scheme}#{host}"
end