# File lib/puppet/provider/macauthorization/macauthorization.rb, line 209 209: def set_rule(name, values) 210: # Both creates and modifies rules as it overwrites the entry in the 211: # rules dictionary. Unfortunately the security binary doesn't 212: # support modifying rules at all so we have to twiddle the whole 213: # plist... :( See Apple Bug #6386000 214: values = convert_plist_to_native_attributes(values) 215: authdb = Plist::parse_xml(AuthDB) 216: authdb["rules"][name] = values 217: 218: begin 219: Plist::Emit.save_plist(authdb, AuthDB) 220: rescue 221: raise Puppet::Error.new("Error writing to: #{AuthDB}") 222: end 223: end