1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/lib/active_file/site.rb
David Heinemeier Hansson d30231e983 Go with site instead of store
Better fit for upload/download terminology.
2017-07-01 00:04:19 +02:00

36 lines
442 B
Ruby

class ActiveFile::Site
def initialize
end
def upload(key, data)
end
def download(key)
end
def delete(key)
end
def exists?(key)
end
def url(key)
end
def checksum(key)
end
def copy(from_key:, to_key:)
end
def move(from_key:, to_key:)
end
private
def normalize_key(key)
# disallow "." and ".." segments in the key
key.split(%r[/]).reject { |s| s == "." || s == ".." }
end
end