diff options
author | Patrick J Cherry <patrick@bytemark.co.uk> | 2011-06-15 19:44:07 +0100 |
---|---|---|
committer | Patrick J Cherry <patrick@bytemark.co.uk> | 2011-06-15 19:44:07 +0100 |
commit | 42f14de6ab50d0e05f49f038e40b94b686701bf1 (patch) | |
tree | 33dc459cf3ae32de8956690a990f080321a67a83 /lib/mauve/auth_bytemark.rb | |
parent | 92e5d4e652aae161640359b41c0ba8dcaedac0ad (diff) |
* Added Alert#subject to return source when subject unspecified
* Added extra arg to acknowledge!
* Alert#all_raised / all_cleared does not returned ack'd alerts
* Added sanitising for source/subject
* Catch empty alert_group notifications in AlertChanged
* Tidied up alert_group
* Added skip bytemark_auth when RACK_ENV is development
* Tidied up logging in MauveThread, Timer, UdpServer
* Added extra convenience methods to Time and Date
* Moved working/daylight/dead_zone hours into Time
Diffstat (limited to 'lib/mauve/auth_bytemark.rb')
-rw-r--r-- | lib/mauve/auth_bytemark.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/mauve/auth_bytemark.rb b/lib/mauve/auth_bytemark.rb index 9e0a6d1..52fa610 100644 --- a/lib/mauve/auth_bytemark.rb +++ b/lib/mauve/auth_bytemark.rb @@ -35,6 +35,8 @@ class AuthBytemark raise ArgumentError.new("Password must be a string, not a #{password.class}") if String != password.class raise ArgumentError.new("Login or/and password is/are empty.") if login.empty? || password.empty? + return false if ENV['RACK_ENV'].to_s == "development" + client = XMLRPC::Client.new(@srv,"/",@port,nil,nil,nil,nil,true,@timeout).proxy("bytemark.auth") begin |