Module: Fog::RiakCS::Utils

Included in:
Provisioning::Mock, Provisioning::Real
Defined in:
lib/fog/riakcs.rb

Instance Method Summary collapse

Instance Method Details

#configure_uri_options(options = {}) ⇒ Object



104
105
106
107
108
109
# File 'lib/fog/riakcs.rb', line 104

def configure_uri_options(options = {})
  @host       = options[:host]       || 'localhost'
  @persistent = options[:persistent] || true
  @port       = options[:port]       || 8080
  @scheme     = options[:scheme]     || 'http'
end

#riakcs_uriObject



111
112
113
# File 'lib/fog/riakcs.rb', line 111

def riakcs_uri
  "#{@scheme}://#{@host}:#{@port}"
end