cnvrg 1.5.7 → 1.5.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cnvrg/datafiles.rb +9 -4
- data/lib/cnvrg/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0bb929c39052ccbc263adada639b4fd21f763dbc8a35b6a0c8dffa104f45b1fc
|
4
|
+
data.tar.gz: 5d5cac1aa19c0bee6b63efd1168146d7ffb243de7dfb7e57147f8d0ae3465982
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9816c45ef55dbf0d158384f484d1e65fe5aa67003f9e91080c9f6347ea88e9cf4a9fc00318605a214fc7765e6e3161b0bd64be47031547ef6dfb2aa14f6fffaa
|
7
|
+
data.tar.gz: b267a3a3a0b3617848ce928eb970dd8a7914c9a1470826977a7a5e2d24505eedaf65a0a172701b7ebe0718c426b4d1a088c4138af6bed1e796456551e246243f
|
data/lib/cnvrg/datafiles.rb
CHANGED
@@ -906,7 +906,10 @@ module Cnvrg
|
|
906
906
|
|
907
907
|
def get_clone_chunk(latest_id: nil, chunk_size: 1000, commit: 'latest')
|
908
908
|
response = Cnvrg::API.request("#{@base_resource}/clone_chunk", 'POST',{commit: commit, chunk_size: chunk_size, latest_id: latest_id})
|
909
|
-
|
909
|
+
unless Cnvrg::CLI.is_response_success(response, false)
|
910
|
+
Cnvrg::Logger.log_info("#{{commit: commit, chunk_size: chunk_size, latest_id: latest_id}}")
|
911
|
+
return nil
|
912
|
+
end
|
910
913
|
response['result']['files']
|
911
914
|
end
|
912
915
|
|
@@ -954,7 +957,8 @@ module Cnvrg
|
|
954
957
|
end
|
955
958
|
Cnvrg::Result.new(true, "Cloned #{overall} files!")
|
956
959
|
rescue => e
|
957
|
-
Cnvrg::Result.new(false, "Cant download chunk")
|
960
|
+
Cnvrg::Result.new(false, "Cant download chunk", e.message, e.backtrace)
|
961
|
+
|
958
962
|
end
|
959
963
|
end
|
960
964
|
|
@@ -981,12 +985,13 @@ module Cnvrg
|
|
981
985
|
local_path = "#{local_path}.conflict" if conflict
|
982
986
|
storage_path = f["path"]
|
983
987
|
|
984
|
-
@downloader.download(storage_path, local_path)
|
985
|
-
Cnvrg::Logger.log_info("Download #{local_path} success")
|
988
|
+
resp = @downloader.download(storage_path, local_path)
|
989
|
+
Cnvrg::Logger.log_info("Download #{local_path} success resp: #{resp}")
|
986
990
|
end
|
987
991
|
end
|
988
992
|
return Cnvrg::Result.new(true,"Downloaded successfully")
|
989
993
|
rescue => e
|
994
|
+
Cnvrg::Logger.log_error(e)
|
990
995
|
return Cnvrg::Result.new(false,"Could not download some files", e.message, e.backtrace)
|
991
996
|
end
|
992
997
|
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.5.
|
4
|
+
version: 1.5.8
|
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: 2019-08-
|
13
|
+
date: 2019-08-17 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|
@@ -432,7 +432,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
432
432
|
- !ruby/object:Gem::Version
|
433
433
|
version: '0'
|
434
434
|
requirements: []
|
435
|
-
rubygems_version: 3.0.
|
435
|
+
rubygems_version: 3.0.4
|
436
436
|
signing_key:
|
437
437
|
specification_version: 4
|
438
438
|
summary: A CLI tool for interacting with cnvrg.io.
|