Sha256: 423839be9487f8ff98cabb8a4a27f296550f9bf261ebddc09f7732f37472d79c
Contents?: true
Size: 533 Bytes
Versions: 3
Compression:
Stored size: 533 Bytes
Contents
# frozen_string_literal: true module SiteMaps::Adapters class FileSystem < Adapter def write(url, raw_data, **) location = Location.new(config.directory, url) storage.write(location, raw_data) end def read(url) location = Location.new(config.directory, url) storage.read(location) end def delete(url) location = Location.new(config.directory, url) storage.delete(location) end private def storage @storage ||= self.class::Storage.new end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
site_maps-0.0.1.beta3 | lib/site_maps/adapters/file_system.rb |
site_maps-0.0.1.beta2 | lib/site_maps/adapters/file_system.rb |
site_maps-0.0.1.beta1 | lib/site_maps/adapters/file_system.rb |