Sha256: 8721de80004865bc9e1c576af2ac871325424134f3781d6402e152ccda876233

Contents?: true

Size: 279 Bytes

Versions: 4

Compression:

Stored size: 279 Bytes

Contents

# 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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
shimmer-0.0.41 lib/shimmer/utils/sitemap_adapter.rb
shimmer-0.0.40 lib/shimmer/utils/sitemap_adapter.rb
shimmer-0.0.39 lib/shimmer/utils/sitemap_adapter.rb
shimmer-0.0.38 lib/shimmer/utils/sitemap_adapter.rb