lib/chef/provider/user/dscl.rb
#
# Gets a value from user information hash using Chef attributes as keys.
#
Gets a value from user information hash using Chef attributes as keys.
Gets a value from user information hash using Chef attributes as keys .
def dscl_get(user_hash, key)
          raise "Unknown dscl key #{key}" unless DSCL_PROPERTY_MAP.keys.include?(key)
          value = user_hash[DSCL_PROPERTY_MAP[key]]
          value.nil? ? value : value.first
        end
def dscl_get ( user_hash , key ) raise "Unknown dscl key #{key}" unless DSCL_PROPERTY_MAP . keys . include? ( key ) value = user_hash [ DSCL_PROPERTY_MAP [ key ] ] value . nil? ? value : value . first end
Gets a value from user information hash using Chef attributes as keys.
Gets a value from user information hash using Chef attributes as keys .
# DSCL values are set as arrays
user_hash
<not_specific>
key
<not_specific>