Sha256: 9a8af910b2736d5f0febd394ff2aa8244455b9d86b9b06ff2354709c89e83b9a
Contents?: true
Size: 825 Bytes
Versions: 3
Compression:
Stored size: 825 Bytes
Contents
require 'fog/core/model' require 'fog/external/models/storage/files' module Fog module Storage class External class Directory < Fog::Model identity :key def destroy requires :key connection.remote.destroy_directory(identity) true end def files @files ||= begin Fog::Storage::External::Files.new( :directory => self, :connection => connection ) end end def public=(new_public) new_public end def public_url nil end def save requires :key connection.remote.create_directory(identity) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems