Class: Cnvrg::Downloader::Clients::AzureClient

Inherits:
Cnvrg::Downloader::Client show all
Defined in:
lib/cnvrg/downloader/clients/azure_client.rb

Instance Method Summary collapse

Methods inherited from Cnvrg::Downloader::Client

#decrypt, #extract_key_iv, factory, #mkdir, #prepare_download

Constructor Details

#initialize(storage: nil, account_name: nil, access_key: nil, container: nil, sts_path: nil) ⇒ AzureClient

Returns a new instance of AzureClient.



5
6
7
8
9
10
# File 'lib/cnvrg/downloader/clients/azure_client.rb', line 5

def initialize(storage: nil, account_name: nil, access_key: nil, container: nil, sts_path: nil)
  @key, @iv = extract_key_iv(sts_path)
  @account_name = Cnvrg::Helpers.decrypt(@key, @iv, )
  @access_key = Cnvrg::Helpers.decrypt(@key, @iv, access_key)
  @container = Cnvrg::Helpers.decrypt(@key, @iv, container)
end

Instance Method Details

#download(storage_path, local_path) ⇒ Object



12
13
14
# File 'lib/cnvrg/downloader/clients/azure_client.rb', line 12

def download(storage_path, local_path)

end

#upload(storage_path, local_path) ⇒ Object



16
17
18
# File 'lib/cnvrg/downloader/clients/azure_client.rb', line 16

def upload(storage_path, local_path)

end