Class: SwiftStorage::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/swift_storage/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



7
8
9
10
11
12
13
14
15
16
17
18
19
# 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

Instance Attribute Details

#auth_methodObject

Returns the value of attribute auth_method.



3
4
5
# File 'lib/swift_storage/configuration.rb', line 3

def auth_method
  @auth_method
end

#auth_versionObject

Returns the value of attribute auth_version.



3
4
5
# File 'lib/swift_storage/configuration.rb', line 3

def auth_version
  @auth_version
end

#authtenant_typeObject

Returns the value of attribute authtenant_type.



3
4
5
# File 'lib/swift_storage/configuration.rb', line 3

def authtenant_type
  @authtenant_type
end

#endpointObject

Returns the value of attribute endpoint.



3
4
5
# File 'lib/swift_storage/configuration.rb', line 3

def endpoint
  @endpoint
end

#passwordObject

Returns the value of attribute password.



3
4
5
# File 'lib/swift_storage/configuration.rb', line 3

def password
  @password
end

#retriesObject

Returns the value of attribute retries.



3
4
5
# File 'lib/swift_storage/configuration.rb', line 3

def retries
  @retries
end

#ssl_verifyObject

Returns the value of attribute ssl_verify.



3
4
5
# File 'lib/swift_storage/configuration.rb', line 3

def ssl_verify
  @ssl_verify
end

#temp_url_keyObject

Returns the value of attribute temp_url_key.



3
4
5
# File 'lib/swift_storage/configuration.rb', line 3

def temp_url_key
  @temp_url_key
end

#tenantObject

Returns the value of attribute tenant.



3
4
5
# File 'lib/swift_storage/configuration.rb', line 3

def tenant
  @tenant
end

#usernameObject

Returns the value of attribute username.



3
4
5
# File 'lib/swift_storage/configuration.rb', line 3

def username
  @username
end