mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[rackspace] fixing connection deprecation warnings
This commit is contained in:
parent
5c0743bfa8
commit
039d424f97
2 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue