class SwiftStorage::Configuration

Attributes

auth_method[RW]
auth_version[RW]
authtenant_type[RW]
endpoint[RW]
password[RW]
retries[RW]
ssl_verify[RW]
temp_url_key[RW]
tenant[RW]
username[RW]

Public Class Methods

new() click to toggle source
# File lib/swift_storage/configuration.rb, line 7
def initialize
  @auth_version = ENV['SWIFT_STORAGE_AUTH_VERSION'] || '1.0'
  @ssl_verify = true
  @tenant = ENV['SWIFT_STORAGE_TENANT']
  @username = ENV['SWIFT_STORAGE_USERNAME']
  @password = ENV['SWIFT_STORAGE_PASSWORD']
  @endpoint = ENV['SWIFT_STORAGE_ENDPOINT']
  @temp_url_key = ENV['SWIFT_STORAGE_TEMP_URL_KEY']
  @retries = 3

  @auth_method = :password
  @authtenant_type = 'tenantName' # `tenantName` or `tenantId`
end