lib/puppet/provider/mobileconfig.rb
# Rather than letting #instances control what a resource looks like, def
# a method to collect the data. This way we can choose whterh or not to
# scrub the PayloadUUID which we now use as a checksum.
Rather than letting #instances control what a resource looks like, def
a method to collect the data. This way we can choose whterh or not to
scrub the PayloadUUID which we now use as a checksum.
Rather than letting #instances control what a resource looks like def a method to collect the data . This way we can choose whterh or not to scrub the PayloadUUID which we now use as a checksum .
def fetch_resources(scrub_uuids=false)
      all = get_installed_profiles
      all.collect do |profile|
        resource = get_resource_properties(profile)
        if scrub_uuids
          resource[:content].collect! do |hash|
            hash.delete('PayloadUUID')
            hash
          end
        end
        new(resource)
      end
    end
def fetch_resources ( scrub_uuids = false ) all = get_installed_profiles all . collect do | profile | resource = get_resource_properties ( profile ) if scrub_uuids resource [ :content ] . collect! do | hash | hash . delete ( 'PayloadUUID' ) hash end end new ( resource ) end end
Rather than letting #instances control what a resource looks like, def
a method to collect the data.
Rather than letting #instances control what a resource looks like def a method to collect the data .
scrub_uuids