зеркало из https://github.com/microsoft/fog.git
[s3] use reload for noun to reset connection
This commit is contained in:
Родитель
5ed729246a
Коммит
4857434c89
|
@ -116,6 +116,8 @@ module Fog
|
||||||
|
|
||||||
class Real
|
class Real
|
||||||
include Utils
|
include Utils
|
||||||
|
extend Fog::Deprecation
|
||||||
|
deprecate(:reset, :reload)
|
||||||
|
|
||||||
# Initialize connection to S3
|
# Initialize connection to S3
|
||||||
#
|
#
|
||||||
|
@ -155,7 +157,7 @@ module Fog
|
||||||
reset
|
reset
|
||||||
end
|
end
|
||||||
|
|
||||||
def reset
|
def reload
|
||||||
@connection = Fog::Connection.new("#{@scheme}://#{@host}:#{@port}")
|
@connection = Fog::Connection.new("#{@scheme}://#{@host}:#{@port}")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче