You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: resource_visibility_propagator.rb
    path of file: ./repos/hyrax/app/services/hyrax
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Hyrax
  ##
  # Propagates visibility from a valkyrie Work to its FileSets
  class ResourceVisibility
    
    def propagate
      queries.find_child_file_sets(resource: source).each do |file_set|
        file_set.visibility = source.visibility
        embargo_manager.copy_embargo_to(target: file_set)
        lease_manager.copy_lease_to(target: file_set)

        file_set.permission_manager.acl.save
        persister.save(resource: file_set)
      end
    end