# frozen_string_literal: true module Shimmer class SitemapAdapter def write(location, raw_data) SitemapGenerator::FileAdapter.new.write(location, raw_data) ActiveStorage::Blob.service.upload(location.path_in_public, File.open(location.path)) end end end