cnvrg 1.11 → 1.11.1

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
  SHA256:
3
- metadata.gz: 04a9acd0283e8ef3c4aacfa23c90d2954e3e0a2ad4f2a70eed66ea0b87144956
4
- data.tar.gz: 8221939940f215d62f6c5a66705cbdd20f6218c87007d2f71d9a4fdba0af5285
3
+ metadata.gz: aa004590a2756120371db2d6322a564e364076453f9d7b858e83c94e2068b4b9
4
+ data.tar.gz: d23ee94fbbd6bfb6b09b303d71f4fa5c646d6fc76cb6d049e96f7d3dddfff348
5
5
  SHA512:
6
- metadata.gz: 286544fb7129aef8fa679aa3daacdfa983cc10154709ceadbaf58406676780225559702b41195182156a379e0f4c6bc192d067eb39a7476a605bd9381f504597
7
- data.tar.gz: '09e9a6a66e91b29afd2940b02d424785556cce005d1b966e7f3e82c6eb448014d6c8657570c4305274fae7b1d34f824520f6e12a90688f069dfaa8facad5d1b8'
6
+ metadata.gz: 0f35da8bf64a49b8ddfa3baea029ad08aa29665632763799b550886cc2647aa81933f967ec6bb5b2b41ab536d1784b265b9d139c0151ee92cbee02dcc33e47a0
7
+ data.tar.gz: e355bf1a4081462895a278998010b8ce587d9d4e065a63df3d8cab65948abc09468fb84511e665f29354782dcf94bc9298d701a03592d5daf5503dbb6228afc9
@@ -964,10 +964,9 @@ module Cnvrg
964
964
  Cnvrg::CLI.is_response_success(response,true)
965
965
  dataset_name = response["results"]["name"]
966
966
  dataset_slug = response["results"]["slug"]
967
- dataset_home = Dir.pwd+"/"+dataset_slug
967
+ dataset_home = Dir.pwd + "/" + dataset_slug
968
968
  Dataset.stop_if_dataset_present(dataset_home, dataset_name) if soft
969
969
 
970
- # dataset_home = Dir.pwd
971
970
  if Dataset.blank_clone(owner, dataset_name, dataset_slug)
972
971
  dataset = Dataset.new(dataset_home)
973
972
  log_message("Cloning #{dataset_name}", Thor::Shell::Color::BLUE)
@@ -986,12 +985,13 @@ module Cnvrg
986
985
  begin
987
986
  log_message("Downloading files", Thor::Shell::Color::BLUE)
988
987
  Parallel.map((response["results"]["query_files"]), parallel_options) do |f|
989
- relative_path = f["fullpath"].gsub(/^#{dataset_home}/, "")
988
+ relative_path = f["fullpath"].gsub(/^#{dataset_home}/, "").gsub(/^#{slug}/, "")
990
989
  relative_path_dir = relative_path.split("/")
991
990
  file_name = relative_path_dir.pop()
992
991
  relative_path_dir = relative_path_dir.join("/")
993
992
  abs_path = dataset_home + "/" + relative_path_dir
994
993
  abs_path = dataset_home if flatten
994
+
995
995
  begin
996
996
  FileUtils.mkdir_p(abs_path) unless File.exist? (abs_path + "/" + file_name)
997
997
  rescue
@@ -1781,8 +1781,7 @@ module Cnvrg
1781
1781
  print_table(list)
1782
1782
  end
1783
1783
 
1784
- desc 'commits', 'List all commits for a specific Project'
1785
-
1784
+ desc 'commits', 'List all commits for a specific Project', :hide => true
1786
1785
  def list_commits()
1787
1786
  verify_logged_in(true)
1788
1787
  log_start(__method__, args, options)
@@ -1796,7 +1795,7 @@ module Cnvrg
1796
1795
  end
1797
1796
 
1798
1797
 
1799
- desc 'unlink', 'Unlink a project from current directory'
1798
+ desc 'unlink', 'Unlink a project from current directory', :hide => true
1800
1799
 
1801
1800
  def unlink
1802
1801
  verify_logged_in(false)
@@ -2893,7 +2892,7 @@ module Cnvrg
2893
2892
  end
2894
2893
  end
2895
2894
 
2896
- desc 'show', 'Show specific file from a specific commit'
2895
+ desc 'show', 'Show specific file from a specific commit', :hide => true
2897
2896
  method_option :path, :type => :string, :aliases => ["-p"], :desc => "File path", :default => ""
2898
2897
  method_option :commit, :type => :string, :aliases => ["-c"], :desc => "Commit sha1", :default => nil
2899
2898
 
@@ -4806,8 +4805,7 @@ module Cnvrg
4806
4805
 
4807
4806
  end
4808
4807
 
4809
- desc 'list_machines', 'Lists all machines belong to your organization'
4810
-
4808
+ desc 'list_machines', 'Lists all machines belong to your organization', :hide => true
4811
4809
  def list_machines
4812
4810
  begin
4813
4811
  verify_logged_in(false)
@@ -1,3 +1,3 @@
1
1
  module Cnvrg
2
- VERSION = '1.11'
2
+ VERSION = '1.11.1'
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'
4
+ version: 1.11.1
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: 2020-09-23 00:00:00.000000000 Z
13
+ date: 2020-10-25 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler
@@ -453,7 +453,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
453
453
  - !ruby/object:Gem::Version
454
454
  version: '0'
455
455
  requirements: []
456
- rubygems_version: 3.0.4
456
+ rubygems_version: 3.1.2
457
457
  signing_key:
458
458
  specification_version: 4
459
459
  summary: A CLI tool for interacting with cnvrg.io.