# File lib/puppet/provider/macauthorization/macauthorization.rb, line 144 144: def destroy_rule 145: authdb = Plist::parse_xml(AuthDB) 146: authdb_rules = authdb["rules"].dup 147: if authdb_rules[resource[:name]] 148: begin 149: authdb["rules"].delete(resource[:name]) 150: Plist::Emit.save_plist(authdb, AuthDB) 151: rescue Errno::EACCES => e 152: raise Puppet::Error.new("Error saving #{AuthDB}: #{e}") 153: end 154: end 155: end