mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[aws|storage] remove unused :path option
This commit is contained in:
parent
be6a5955f0
commit
cb7f5c7496
1 changed files with 1 additions and 7 deletions
|
@ -44,7 +44,7 @@ module Fog
|
||||||
]
|
]
|
||||||
|
|
||||||
requires :aws_access_key_id, :aws_secret_access_key
|
requires :aws_access_key_id, :aws_secret_access_key
|
||||||
recognizes :endpoint, :region, :host, :path, :port, :scheme, :persistent, :use_iam_profile, :aws_session_token, :aws_credentials_expire_at, :path_style
|
recognizes :endpoint, :region, :host, :port, :scheme, :persistent, :use_iam_profile, :aws_session_token, :aws_credentials_expire_at, :path_style
|
||||||
|
|
||||||
secrets :aws_secret_access_key, :hmac
|
secrets :aws_secret_access_key, :hmac
|
||||||
|
|
||||||
|
@ -403,17 +403,11 @@ module Fog
|
||||||
if @endpoint = options[:endpoint]
|
if @endpoint = options[:endpoint]
|
||||||
endpoint = URI.parse(@endpoint)
|
endpoint = URI.parse(@endpoint)
|
||||||
@host = endpoint.host
|
@host = endpoint.host
|
||||||
@path = if endpoint.path.empty?
|
|
||||||
'/'
|
|
||||||
else
|
|
||||||
endpoint.path
|
|
||||||
end
|
|
||||||
@scheme = endpoint.scheme
|
@scheme = endpoint.scheme
|
||||||
@port = endpoint.port
|
@port = endpoint.port
|
||||||
else
|
else
|
||||||
@region = options[:region] || DEFAULT_REGION
|
@region = options[:region] || DEFAULT_REGION
|
||||||
@host = options[:host] || region_to_host(@region)
|
@host = options[:host] || region_to_host(@region)
|
||||||
@path = options[:path] || '/'
|
|
||||||
@scheme = options[:scheme] || DEFAULT_SCHEME
|
@scheme = options[:scheme] || DEFAULT_SCHEME
|
||||||
@port = options[:port] || DEFAULT_SCHEME_PORT[@scheme]
|
@port = options[:port] || DEFAULT_SCHEME_PORT[@scheme]
|
||||||
@path_style = options[:path_style] || false
|
@path_style = options[:path_style] || false
|
||||||
|
|
Loading…
Reference in a new issue