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

Add configuration for path_style to RiakCS Provisioning client. Defaults the false if no user input is given (following the style for the s3client default settings).

This commit is contained in:
Derek Richard and Karen Wang 2014-01-24 14:25:01 -08:00
parent f531f0bdd7
commit 27ebf8a9ea

View file

@ -8,7 +8,7 @@ module Fog
class ServiceUnavailable < Fog::RiakCS::Provisioning::Error; end
requires :riakcs_access_key_id, :riakcs_secret_access_key
recognizes :host, :path, :port, :scheme, :persistent
recognizes :host, :path, :port, :scheme, :persistent, :path_style
request_path 'fog/riakcs/requests/provisioning'
request :create_user
@ -52,6 +52,7 @@ module Fog
@riakcs_secret_access_key = options[:riakcs_secret_access_key]
@connection_options = options[:connection_options] || {}
@persistent = options[:persistent] || false
@path_style = options[:path_style] || false
@raw_connection = Fog::Connection.new(riakcs_uri, @persistent, @connection_options)
@ -62,6 +63,7 @@ module Fog
:host => @host,
:port => @port,
:scheme => @scheme,
:path_style => @path_style,
:connection_options => @connection_options
)
end