lib/fog/storage/models/rackspace/directory.rb in fog-0.5.3 vs lib/fog/storage/models/rackspace/directory.rb in fog-0.6.0
- old
+ new
@@ -4,21 +4,19 @@
module Fog
module Rackspace
class Storage
class Directory < Fog::Model
- extend Fog::Deprecation
- deprecate(:name, :key)
- deprecate(:name=, :key=)
identity :key, :aliases => 'name'
attribute :bytes, :aliases => 'X-Container-Bytes-Used'
attribute :count, :aliases => 'X-Container-Object-Count'
def destroy
requires :key
connection.delete_container(key)
+ connection.cdn.put_container(key, 'X-CDN-Enabled' => 'False')
true
rescue Excon::Errors::NotFound
false
end