formats
This commit is contained in:
@@ -127,9 +127,9 @@ def colorize(text, color_code)
|
||||
end
|
||||
|
||||
def red(text)
|
||||
; colorize(text, 31)
|
||||
colorize(text, 31)
|
||||
end
|
||||
|
||||
def green(text)
|
||||
; colorize(text, 32)
|
||||
colorize(text, 32)
|
||||
end
|
||||
|
||||
@@ -23,14 +23,16 @@ module WebSite
|
||||
def is_wordpress?
|
||||
wordpress = false
|
||||
|
||||
response = Browser.instance.get(login_url(),
|
||||
response = Browser.instance.get(
|
||||
login_url(),
|
||||
{:follow_location => true, :max_redirects => 2}
|
||||
)
|
||||
|
||||
if response.body =~ %r{WordPress}i
|
||||
wordpress = true
|
||||
else
|
||||
response = Browser.instance.get(xmlrpc_url(),
|
||||
response = Browser.instance.get(
|
||||
xmlrpc_url(),
|
||||
{:follow_location => true, :max_redirects => 2}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user