[rackspace] fixing connection deprecation warnings

This commit is contained in:
Kyle Rames 2013-08-15 13:14:58 -05:00
parent 5c0743bfa8
commit 039d424f97
2 changed files with 5 additions and 5 deletions

View File

@ -19,7 +19,7 @@ module Fog
# @raise [Fog::Compute::RackspaceV2::ServiceError]
def destroy
requires :identity
connection.delete_metadata_item(collection_name, parent.id, key)
service.delete_metadata_item(collection_name, parent.id, key)
true
end
@ -31,7 +31,7 @@ module Fog
# @raise [Fog::Compute::RackspaceV2::ServiceError]
def save
requires :identity, :value
connection.set_metadata_item(collection_name, parent.id, key, value)
service.set_metadata_item(collection_name, parent.id, key, value)
true
end

View File

@ -91,19 +91,19 @@ module Fog
def enable_content_caching
requires :identity
connection.set_content_caching identity, true
service.set_content_caching identity, true
true
end
def disable_content_caching
requires :identity
connection.set_content_caching identity, false
service.set_content_caching identity, false
true
end
def content_caching
requires :identity
connection.get_content_caching(identity).body['contentCaching']['enabled']
service.get_content_caching(identity).body['contentCaching']['enabled']
end
def enable_connection_logging