cnvrg 1.11.13 → 1.11.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 74c9b6b821c1d0fadae87a6b17579fa43a445fb0166a973bb14f686d778109e5
4
- data.tar.gz: 525cae9497069129defa5c02995d04548adf4155e70e2ccf5ffe4f23bd883ed2
3
+ metadata.gz: 4efa915d1f57cfba945987168eb4cfd118bfee50e8d5e3fa76dd08592176e054
4
+ data.tar.gz: 8f2b8cd5916f6281c25791f36791c6cc3052f0b4fe7a1094661c635f63eb1b9d
5
5
  SHA512:
6
- metadata.gz: 736ae2e6aa54cdd18ff40d0a196cf6a10c764eaca2cc651fa4c2816b671b1d84bdd5d2329dea01082ab4175a95223797a3904cfa712aca51a07b6c13f63b95ab
7
- data.tar.gz: bf58276b9169bc539f8d505b7482b5e9c40959e2773d1b08a323b86fd5acf9aa729f34390f56e1c3e854e9deb5d252cb4ff7f242fedba59f4ca4152c2d4f7cf3
6
+ metadata.gz: 24459de6ce2e782816f68f891e79f8b4fe75d98571983321358619be51fd718055581aea9c4db8a850aea3af97ada9b50207b8278490088c42dce60407b1dc8e
7
+ data.tar.gz: 03a9f04384ddfebc7e3ee9b0eb10361d808e686286b77ba26753969284e7ae707c147aab7221325d89f9bd22151d378f2865a96c1b01d2d45657f488d2ee97ee
@@ -751,6 +751,7 @@ module Cnvrg
751
751
  end
752
752
 
753
753
  def download_multpile_files_s3(files, project_home, postfix: '', progress: nil, threads: 15)
754
+ cli = Cnvrg::CLI.new()
754
755
  begin
755
756
  props = {}
756
757
  client = props[:client]
@@ -774,11 +775,15 @@ module Cnvrg
774
775
  file_path = f["name"]
775
776
  if file_path.end_with? "/"
776
777
  # dir
777
- if download_dir(file_path, file_path, project_home)
778
- download_succ_count += 1
779
- else
780
- return Cnvrg::Result.new(false,"Could not create directory: #{file_path}")
781
- raise Parallel::Kill
778
+ begin
779
+ if download_dir(file_path, file_path, project_home)
780
+ download_succ_count += 1
781
+ else
782
+ raise SignalException.new("Could not create directory #{file_path}.")
783
+ end
784
+ rescue => e
785
+ cli.log_info("Could not create directory #{file_path}. error: #{e.message}", Thor::Shell::Color::RED)
786
+ raise e
782
787
  end
783
788
  else
784
789
  file_path += postfix
@@ -793,25 +798,20 @@ module Cnvrg
793
798
  progress.progress += 1 if progress.present?
794
799
  download_succ_count += 1
795
800
  rescue => e
796
- return Cnvrg::Result.new(false,"Could not create file: #{file_path}", e.message, e.backtrace)
797
- raise Parallel::Kill
801
+ cli.log_info("Could not download file #{file_path}. error: #{e.message}", Thor::Shell::Color::RED)
802
+ raise e
798
803
  end
799
-
800
-
801
-
802
804
  end
803
805
  end
804
806
  if download_succ_count == files["keys"].size
805
807
  return Cnvrg::Result.new(true,"Done.\nDownloaded #{download_succ_count} files")
806
808
  end
807
809
  rescue => e
808
- return Cnvrg::Result.new(false,"Could not download some files", e.message, e.backtrace)
810
+ cli.log_error(e)
811
+ raise e
809
812
  end
810
-
811
-
812
-
813
-
814
813
  end
814
+
815
815
  def download_file(absolute_path, relative_path, project_home, conflict=false)
816
816
  res = Cnvrg::API.request(@base_resource + "download_file", 'POST', {absolute_path: absolute_path, relative_path: relative_path})
817
817
  Cnvrg::CLI.is_response_success(res, false)
@@ -170,7 +170,7 @@ class Cnvrg::Helpers::Executer
170
170
  next
171
171
  end
172
172
  cmd = @commands_q.pop.symbolize_keys
173
- comman d_json = Cnvrg::API.request([activity_url, "commands", cmd[:slug]].join('/'), "GET")
173
+ command_json = Cnvrg::API.request([activity_url, "commands", cmd[:slug]].join('/'), "GET")
174
174
 
175
175
  cmd_status = command_json["status"] rescue ""
176
176
 
@@ -1,3 +1,3 @@
1
1
  module Cnvrg
2
- VERSION = '1.11.13'
2
+ VERSION = '1.11.14'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cnvrg
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.13
4
+ version: 1.11.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yochay Ettun
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-01-18 00:00:00.000000000 Z
13
+ date: 2021-01-22 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler