lib/chef/provider/user/dscl.rb
#
# Sets a value in user information hash using Chef attributes as keys.
#
Sets a value in user information hash using Chef attributes as keys.
Sets a value in user information hash using Chef attributes as keys .
def dscl_set(user_hash, key, value)
          raise "Unknown dscl key #{key}" unless DSCL_PROPERTY_MAP.keys.include?(key)
          user_hash[DSCL_PROPERTY_MAP[key]] = [ value ]
          user_hash
        end
def dscl_set ( user_hash , key , value ) raise "Unknown dscl key #{key}" unless DSCL_PROPERTY_MAP . keys . include? ( key ) user_hash [ DSCL_PROPERTY_MAP [ key ] ] = [ value ] user_hash end
Sets a value in user information hash using Chef attributes as keys.
Sets a value in user information hash using Chef attributes as keys .
user_hash
<not_specific>
key
<not_specific>
value
<not_specific>