# File lib/puppet/provider/macauthorization/macauthorization.rb, line 151
151:   def flush_right
152:     # first we re-read the right just to make sure we're in sync for
153:     # values that weren't specified in the manifest. As we're supplying
154:     # the whole plist when specifying the right it seems safest to be
155:     # paranoid given the low cost of quering the db once more.
156:     cmds = []
157:     cmds << :security << "authorizationdb" << "read" << resource[:name]
158:     output = execute(cmds, :combine => false)
159:     current_values = Plist::parse_xml(output)
160:     current_values ||= {}
161:     specified_values = convert_plist_to_native_attributes(@property_hash)
162: 
163:     # take the current values, merge the specified values to obtain a
164:     # complete description of the new values.
165:     new_values = current_values.merge(specified_values)
166:     set_right(resource[:name], new_values)
167:   end