cnvrg 0.0.1560000 → 0.0.1570000

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 48f214b59ed173095641866a5bb2cfc4aafcb393
4
- data.tar.gz: de943b0cdca172f5ce041bfcdb39c527effe3ab9
3
+ metadata.gz: 8e559eaa6bf4bb6a7fa9145cfcd74ee01e0eb1d6
4
+ data.tar.gz: 33bb846ac39af39eb0541ff69746374ce33a6a80
5
5
  SHA512:
6
- metadata.gz: 8a8c1bd7085bf89d4f502753ca95116941d4135af582de70266a5e9df0c17435baf8f520f91cc2082d5945141a45ad2c69f85b2760d3819d89f5892ca25515fe
7
- data.tar.gz: 829f925eb8edc4dd874da669e4b877eed2f1b445abc2ddbc20df13f40ebfadf0f6c0728c164aea7fa7b6e3d93969445b64c4403e84470ef347e8c2f14e14c0dd
6
+ metadata.gz: fa97a3c98be2139c2a121d4bd6ef52dfe980ae4f8066c1e1e911c87c0d8635c9bd48dd8ad7bb5a54a61c3b32ca655d376d9aab2cf51efffd1921924986345f66
7
+ data.tar.gz: 77c0c6827e7e487b3922f717a9c63d751b2daf8bdf0543315cc1da357a82e8d4b634b4ec61f2733e033d60247dfeac5a5b370b3532b6740df7e17a9a559da535
@@ -1757,6 +1757,8 @@ module Cnvrg
1757
1757
  absolute_path = "#{@project.local_path}/#{f}"
1758
1758
  relative_path = f.gsub(/^#{@project.local_path + "/"}/, "")
1759
1759
  if File.directory?(absolute_path)
1760
+ log_message("uploading dir: #{f}", Thor::Shell::Color::RED, options["verbose"])
1761
+
1760
1762
  resDir = @files.create_dir(absolute_path, relative_path, commit_sha1)
1761
1763
  if resDir
1762
1764
  f
@@ -1770,6 +1772,7 @@ module Cnvrg
1770
1772
  end
1771
1773
 
1772
1774
  else
1775
+ log_message("uploading: #{f}", Thor::Shell::Color::RED, options["verbose"])
1773
1776
 
1774
1777
  res = @files.upload_file(absolute_path, relative_path, commit_sha1)
1775
1778
  if res
@@ -1805,6 +1808,8 @@ module Cnvrg
1805
1808
 
1806
1809
  relative_path = f.gsub(/^#{@project.local_path + "/"}/, "")
1807
1810
  if relative_path.end_with?("/")
1811
+ log_message("deleting dir: #{f}", Thor::Shell::Color::RED, options["verbose"])
1812
+
1808
1813
  if @files.delete_dir(f, relative_path, commit_sha1)
1809
1814
  f
1810
1815
  else
@@ -1812,6 +1817,8 @@ module Cnvrg
1812
1817
 
1813
1818
  end
1814
1819
  else
1820
+ log_message("deleteing file: #{f}", Thor::Shell::Color::RED, options["verbose"])
1821
+
1815
1822
  if @files.delete_file(f, relative_path, commit_sha1)
1816
1823
  f
1817
1824
  else
@@ -2007,6 +2014,8 @@ module Cnvrg
2007
2014
  conflicts_result = Parallel.map(result["conflicts"], in_processes: ParallelProcesses, in_thread: ParallelThreads) do |f|
2008
2015
 
2009
2016
  relative_path = f.gsub(/^#{@project.local_path}/, "")
2017
+ log_message("downloading: #{f}.conflict", Thor::Shell::Color::RED, options["verbose"])
2018
+
2010
2019
  if @files.download_file_s3(f, relative_path, project_home, commit_sha1=nil, conflict=true)
2011
2020
  f
2012
2021
  else
@@ -2033,6 +2042,8 @@ module Cnvrg
2033
2042
  relative_path = f.gsub(/^#{@project.local_path}/, "")
2034
2043
  if f.end_with? "/"
2035
2044
  # dir
2045
+ log_message("downloading dir: #{f}", Thor::Shell::Color::RED, options["verbose"])
2046
+
2036
2047
  if @files.download_dir(f, relative_path, project_home)
2037
2048
  f
2038
2049
  else
@@ -2044,6 +2055,8 @@ module Cnvrg
2044
2055
 
2045
2056
  else
2046
2057
  # blob
2058
+ log_message("downloading file: #{f}", Thor::Shell::Color::RED, options["verbose"])
2059
+
2047
2060
  if @files.download_file_s3(f, relative_path, project_home)
2048
2061
  f
2049
2062
  else
@@ -26,17 +26,19 @@ module Cnvrg
26
26
  upload_resp = Cnvrg::API.request(@base_resource + "upload_file", 'POST_FILE', {absolute_path: absolute_path, relative_path: relative_path,
27
27
  commit_sha1: commit_sha1, file_name: file_name,
28
28
  file_size: file_size, file_content_type: content_type, sha1: sha1,
29
- new_version:true})
29
+ new_version:true,only_large:true})
30
30
 
31
31
 
32
32
  if Cnvrg::CLI.is_response_success(upload_resp, false)
33
33
 
34
34
  path = upload_resp["result"]["path"]
35
- if file_size.to_f>= Cnvrg::Files::LARGE_FILE.to_f
36
- s3_res = upload_large_files_s3(upload_resp, absolute_path)
37
- else
38
- s3_res = upload_small_files_s3(path, absolute_path, content_type)
39
- end
35
+ s3_res = upload_large_files_s3(upload_resp, absolute_path)
36
+
37
+ # if file_size.to_f>= Cnvrg::Files::LARGE_FILE.to_f
38
+ # s3_res = upload_large_files_s3(upload_resp, absolute_path)
39
+ # else
40
+ # s3_res = upload_small_files_s3(path, absolute_path, content_type)
41
+ # end
40
42
  return s3_res
41
43
  # if s3_res
42
44
  # update_s3_resp = Cnvrg::API.request(@base_resource + "update_s3", 'POST', {path: path, commit_id: upload_resp["result"]["commit_id"],
@@ -285,7 +287,6 @@ module Cnvrg
285
287
 
286
288
  rescue => e
287
289
  puts e
288
- puts e.backtrace
289
290
  return false
290
291
 
291
292
  end
@@ -1,4 +1,4 @@
1
1
  module Cnvrg
2
- VERSION = '0.0.1560000'
2
+ VERSION = '0.0.1570000'
3
3
  end
4
4
 
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: 0.0.1560000
4
+ version: 0.0.1570000
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yochay Ettun
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-08-09 00:00:00.000000000 Z
12
+ date: 2017-08-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -402,9 +402,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
402
402
  version: '0'
403
403
  requirements: []
404
404
  rubyforge_project:
405
- rubygems_version: 2.5.1
405
+ rubygems_version: 2.6.12
406
406
  signing_key:
407
407
  specification_version: 4
408
408
  summary: A CLI tool for interacting with cnvrg.io.
409
409
  test_files: []
410
- has_rdoc: