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 ( = {}) @host = [:host] || 'localhost' @persistent = [:persistent] || true @port = [:port] || 8080 @scheme = [:scheme] || 'http' end |
#riakcs_uri ⇒ Object
111 112 113 |
# File 'lib/fog/riakcs.rb', line 111 def riakcs_uri "#{@scheme}://#{@host}:#{@port}" end |