1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Add deprecation notices to storage and queues.

This commit is contained in:
Ash Wilson 2014-08-13 16:18:17 -04:00
parent 32a31b8899
commit a3c58fb2c7
2 changed files with 12 additions and 0 deletions

View file

@ -54,6 +54,12 @@ module Fog
unless v2_authentication?
raise Fog::Errors::NotImplemented.new("V2 authentication required for Queues")
end
unless @rackspace_region || @rackspace_queues_cl
Fog::Logger.deprecation("Default region support will be removed in an upcoming release. Please switch to manually setting your endpoint. This requires settng the :rackspace_region option.")
end
@rackspace_region ||= :ord
end
def service_name

View file

@ -56,6 +56,12 @@ module Fog
@rackspace_temp_url_key = options[:rackspace_temp_url_key]
@rackspace_must_reauthenticate = false
@connection_options = options[:connection_options] || {}
unless @rackspace_region || (@rackspace_storage_url && @rackspace_cdn_url)
Fog::Logger.deprecation("Default region support will be removed in an upcoming release. Please switch to manually setting your endpoint. This requires settng the :rackspace_region option.")
end
@rackspace_region ||= :dfw
end
def cdn