lib/puppet/provider/macauthdb/default.rb
# Fetches the appropriate rules row and converts results to a Hash
Fetches the appropriate rules row and converts results to a Hash
Fetches the appropriate rules row and converts results to a Hash
def sql_get_rule(dbconn, name)
    name_query = %Q{SELECT * FROM rules WHERE name = '#{name}'}
    result     = self.class.exec_sql_statement(@dbconn, name_query).first
    result.nil? ? {} : Hash[SCHEMA.zip(result)] || {}
  end
def sql_get_rule ( dbconn , name ) name_query = %Q{SELECT * FROM rules WHERE name = '#{name}'} result = self . class . exec_sql_statement ( @dbconn , name_query ) . first result . nil? ? { } : Hash [ SCHEMA . zip ( result ) ] || { } end
Fetches the appropriate rules row and converts results to a Hash
Fetches the appropriate rules row and converts results to a Hash
dbconn
name