Method: Cnvrg::Downloader::Clients::AzureClient#initialize
- Defined in:
- lib/cnvrg/downloader/clients/azure_client.rb
#initialize(storage_account_name: nil, storage_access_key: nil, container: nil, sts: nil) ⇒ AzureClient
Returns a new instance of AzureClient.
7 8 9 10 11 12 |
# File 'lib/cnvrg/downloader/clients/azure_client.rb', line 7 def initialize(storage_account_name: nil, storage_access_key: nil, container: nil, sts: nil) @key, @iv = extract_key_iv(sts) @account_name = Cnvrg::Helpers.decrypt(@key, @iv, storage_account_name) @access_key = Cnvrg::Helpers.decrypt(@key, @iv, storage_access_key) @container = Cnvrg::Helpers.decrypt(@key, @iv, container) end |