client/lib/deltacloud/client/connection.rb
# Check if the credentials used are valid for the current @connection
#
Check if the credentials used are valid for the current @connection
Check if the credentials used are valid for the current @connection
def valid_credentials?
      begin
        r = connection.get(path, { :force_auth => 'true' })
        r.status == 200
      rescue error(:authentication_error)
        false
      end
    end
def valid_credentials? begin r = connection . get ( path , { :force_auth => 'true' } ) r . status == 200 rescue error ( :authentication_error ) false end end
Check if the credentials used are valid for the current @connection
Check if the credentials used are valid for the current @connection