Class: Cnvrg::Downloader::Clients::AzureClient
Instance Method Summary
collapse
#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
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 = (sts_path)
@account_name = Cnvrg::Helpers.decrypt(@key, @iv, account_name)
@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
|