Module: Fog::RiakCS::Utils

Included in:
Provisioning::Mock, Provisioning::Real, Fog::RiakCS::Usage::Mock, Fog::RiakCS::Usage::Real
Defined in:
lib/fog/riakcs/utils.rb

Instance Method Summary collapse

Instance Method Details

#configure_uri_options(options = {}) ⇒ Object



4
5
6
7
8
9
# File 'lib/fog/riakcs/utils.rb', line 4

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

#riakcs_uriObject



11
12
13
# File 'lib/fog/riakcs/utils.rb', line 11

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