cnvrg 1.11.14 → 1.11.15
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 +4 -4
- data/lib/cnvrg/files.rb +5 -5
- data/lib/cnvrg/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8798ab84db1e0742dc733a0f74b5830e2c5396099fc52bdb4a04ef108a43408e
|
|
4
|
+
data.tar.gz: 795988ec46ba506091136240bda258f923469e4b3000d58e84371df09f65840d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '0497d165396b52d2975c3d3ab8c097596c173f04c63711519cf2c122fb9dc5f90ecc493aab7ba2cba0d7064dc14b52a7e1d7f2f6f5e68d3af020d4b3f1f5b35c'
|
|
7
|
+
data.tar.gz: 72c65364f4c9ad8d5acf68546f0a428c113dd9697613674ce83b52a3ce7fcec8064a7517d9b5b5ae7f21a8690ba935d028622688d72f87eb3e1927d7fe5ea9e2
|
data/lib/cnvrg/files.rb
CHANGED
|
@@ -733,7 +733,7 @@ module Cnvrg
|
|
|
733
733
|
unless Cnvrg::CLI.is_response_success(res, false)
|
|
734
734
|
raise SignalException.new("Cant download files from the server.")
|
|
735
735
|
end
|
|
736
|
-
self.
|
|
736
|
+
self.download_multiple_files_s3(res['result'], @project_home, postfix: postfix, progress: progress, threads: threads)
|
|
737
737
|
end
|
|
738
738
|
|
|
739
739
|
|
|
@@ -750,7 +750,7 @@ module Cnvrg
|
|
|
750
750
|
conflicted.each{|file| self.delete_conflict(file); progress.progress += 1 if progress.present?}
|
|
751
751
|
end
|
|
752
752
|
|
|
753
|
-
def
|
|
753
|
+
def download_multiple_files_s3(files, project_home, postfix: '', progress: nil, threads: 15)
|
|
754
754
|
cli = Cnvrg::CLI.new()
|
|
755
755
|
begin
|
|
756
756
|
props = {}
|
|
@@ -779,10 +779,10 @@ module Cnvrg
|
|
|
779
779
|
if download_dir(file_path, file_path, project_home)
|
|
780
780
|
download_succ_count += 1
|
|
781
781
|
else
|
|
782
|
-
raise
|
|
782
|
+
raise StandardError.new("Could not create directory #{file_path}.")
|
|
783
783
|
end
|
|
784
784
|
rescue => e
|
|
785
|
-
cli.
|
|
785
|
+
cli.log_message("Could not create directory #{file_path}. error: #{e.message}", Thor::Shell::Color::RED)
|
|
786
786
|
raise e
|
|
787
787
|
end
|
|
788
788
|
else
|
|
@@ -798,7 +798,7 @@ module Cnvrg
|
|
|
798
798
|
progress.progress += 1 if progress.present?
|
|
799
799
|
download_succ_count += 1
|
|
800
800
|
rescue => e
|
|
801
|
-
cli.
|
|
801
|
+
cli.log_message("Could not download file #{file_path}. error: #{e.message}", Thor::Shell::Color::RED)
|
|
802
802
|
raise e
|
|
803
803
|
end
|
|
804
804
|
end
|
data/lib/cnvrg/version.rb
CHANGED
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.
|
|
4
|
+
version: 1.11.15
|
|
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-
|
|
13
|
+
date: 2021-01-25 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: bundler
|