Method: Cnvrg::Project#get_storage_client
- Defined in:
- lib/cnvrg/project.rb
#get_storage_client ⇒ Object
326 327 328 329 330 331 332 333 334 |
# File 'lib/cnvrg/project.rb', line 326 def get_storage_client response = Cnvrg::API.request("users/#{@owner}/projects/#{@slug}/client", 'GET') if Cnvrg::CLI.is_response_success(response, false) client_params = response['client'] else client_params = get_storage_client_fallback end Cnvrg::Downloader::Client.factory(client_params) end |