Method: Fog::KeyManager::OpenStack::Real#initialize

Defined in:
lib/fog/key_manager/openstack.rb

#initialize(options = {}) ⇒ Real

Returns a new instance of Real.



99
100
101
102
103
104
105
106
107
108
109
110
111
# File 'lib/fog/key_manager/openstack.rb', line 99

def initialize(options = {})
  initialize_identity options

  @openstack_service_type           = options[:openstack_service_type] || ['key-manager']
  @openstack_service_name           = options[:openstack_service_name]
  @connection_options               = options[:connection_options] || {}

  authenticate
  set_api_path

  @persistent = options[:persistent] || false
  @connection = Fog::Core::Connection.new("#{@scheme}://#{@host}:#{@port}", @persistent, @connection_options)
end