Class: Fog::Storage::Ninefold::Real

Inherits:
Atmos::Real show all
Includes:
Utils
Defined in:
lib/fog/ninefold/storage.rb

Constant Summary

Constants included from Atmos::Utils

Atmos::Utils::ENDPOINT_REGEX

Instance Method Summary collapse

Methods inherited from Atmos::Real

#delete_namespace, #get_namespace, #head_namespace, #post_namespace, #put_namespace, #reload, #request, #sign, #uid

Methods included from Atmos::Utils

#api_path, #host, #port, #setup_credentials, #ssl?

Constructor Details

#initialize(options = {}) ⇒ Real

Returns a new instance of Real.



40
41
42
43
44
45
46
47
48
49
# File 'lib/fog/ninefold/storage.rb', line 40

def initialize(options={})
  endpoint = "#{STORAGE_SCHEME}://"\
             "#{STORAGE_HOST}:"\
             "#{STORAGE_PORT}"\
             "#{STORAGE_PATH}"
  options[:atmos_storage_endpoint] = endpoint
  options[:atmos_storage_token] = options[:ninefold_storage_token]
  options[:atmos_storage_secret] = options[:ninefold_storage_secret]
  super(options)
end