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 +4 -4
- data/lib/cnvrg/files.rb +15 -15
- data/lib/cnvrg/helpers/executer.rb +1 -1
- 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: 4efa915d1f57cfba945987168eb4cfd118bfee50e8d5e3fa76dd08592176e054
|
4
|
+
data.tar.gz: 8f2b8cd5916f6281c25791f36791c6cc3052f0b4fe7a1094661c635f63eb1b9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24459de6ce2e782816f68f891e79f8b4fe75d98571983321358619be51fd718055581aea9c4db8a850aea3af97ada9b50207b8278490088c42dce60407b1dc8e
|
7
|
+
data.tar.gz: 03a9f04384ddfebc7e3ee9b0eb10361d808e686286b77ba26753969284e7ae707c147aab7221325d89f9bd22151d378f2865a96c1b01d2d45657f488d2ee97ee
|
data/lib/cnvrg/files.rb
CHANGED
@@ -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
|
-
|
778
|
-
|
779
|
-
|
780
|
-
|
781
|
-
|
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
|
-
|
797
|
-
raise
|
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
|
-
|
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
|
-
|
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
|
|
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.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-
|
13
|
+
date: 2021-01-22 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|