Method: Fog::Compute::StormOnDemand::Real#initialize
- Defined in:
- lib/fog/storm_on_demand/compute.rb
#initialize(options = {}) ⇒ Real
Returns a new instance of Real.
87 88 89 90 91 92 93 94 95 96 97 98 99 |
# File 'lib/fog/storm_on_demand/compute.rb', line 87 def initialize(={}) require 'multi_json' uri = URI.parse([:storm_on_demand_auth_url] ||= API_URL) @connection_options = [:connection_options] || {} @host = uri.host @path = uri.path @persistent = [:persistent] || false @port = uri.port @scheme = uri.scheme @storm_on_demand_username = [:storm_on_demand_username] @storm_on_demand_password = [:storm_on_demand_password] @connection = Fog::Connection.new("#{@scheme}://#{@host}:#{@port}", @persistent, @connection_options) end |