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