AppController/djinn.rb
# Checks to see if the credentials given to us (a Hash) have all the keys that
# other methods expect to see.
Checks to see if the credentials given to us (a Hash) have all the keys that
other methods expect to see.
Checks to see if the credentials given to us ( a Hash ) have all the keys that other methods expect to see .
def valid_format_for_credentials(possible_credentials)
    required_fields = ["table", "hostname", "ips", "keyname"]
    required_fields.each { |field|
      return false unless possible_credentials[field]
    }
    return true
  end
def valid_format_for_credentials ( possible_credentials ) required_fields = [ "table" , "hostname" , "ips" , "keyname" ] required_fields . each { | field | return false unless possible_credentials [ field ] } return true end
Checks to see if the credentials given to us (a Hash) have all the keys that
other methods expect to see.
Checks to see if the credentials given to us ( a Hash ) have all the keys that other methods expect to see .
possible_credentials
<not_specific>