class ActiveStorage::Service::MirrorService

def self.build(primary:, mirrors:, name:, configurator:, **options) # :nodoc:

:nodoc:
Stitch together from named services.
def self.build(primary:, mirrors:, name:, configurator:, **options) # :nodoc:
  new(
    primary: configurator.build(primary),
    mirrors: mirrors.collect { |mirror_name| configurator.build mirror_name }
  ).tap do |service_instance|
    service_instance.name = name
  end
end