cnvrg 0.6.8 → 0.6.9

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e7321af4c126ecf60f3848acccb6175f3efcd889
4
- data.tar.gz: 33d47c965ce3027a2230620157b762397d0000c4
3
+ metadata.gz: 804863e3832cb047494b45aa727bb7fa2e2492b2
4
+ data.tar.gz: ea419ca1896bc52b8c505efb9d1f0353e633ee8a
5
5
  SHA512:
6
- metadata.gz: 809ab8647843eb8065a88ea71aba5ffda922243e1fbd98cfd7fb4b7eb07843465274e963daea3692781fbbcbca7b132691228d57d1c1d6a3134bd2e11a68a127
7
- data.tar.gz: 243c5285ae8b4c8ce477ee6207303e043d117dac32a5c197e90bc6ac7b71f38bb8b56bf4fe6b54407c17cb9b4f87a03b1756a703a67e0a9c8d844bcf939b4fbc
6
+ metadata.gz: f04a6700e05470b4c2c980498f5df76e2ae608e7f11317f6ca4a7e65d419862bf259c65fdea274618d5db6bb2b5bcf30e7c0cdb5eb769c2eef6ca70493a96717
7
+ data.tar.gz: dd39ed29891a6716f721e826c5410d65f2aec4dc67d361d8a663bd6b70dbcbf2b31ea7ac65e5925e917510b13981b5d8336a3d1f319e0e22801f86cc56fc98c2
data/lib/cnvrg/cli.rb CHANGED
@@ -163,27 +163,6 @@ module Cnvrg
163
163
 
164
164
  desc "", "", :hide => true
165
165
 
166
- def test
167
- # image_settings = {
168
- # 'Image' => "cnvrg:latest",
169
- # 'User' => 'ds',
170
- # 'Cmd' => '/home/ds/run_ipython.sh',
171
- # 'ExposedPorts' => {
172
- # '80/tcp' => {},
173
- # },
174
- # 'HostConfig' => {
175
- # 'PortBindings' => {
176
- # '80/tcp' => [
177
- # {'HostPort' => "7654", 'HostIp' => 'localhost'}
178
- # ],
179
- # },
180
- # },
181
- # }
182
- # container = Docker::Container.get('b4d64bf83f41')
183
- # s = "/leah/1/2/3/4/5"
184
- # command = ["/bin/bash","-lc","sed -i 's#c.NotebookApp.base_url = .*#c.NotebookApp.base_url = \"#{s}\"#' /home/ds/.jupyter/jupyter_notebook_config.py"]
185
- # puts container.exec(command, tty: true)
186
- end
187
166
 
188
167
 
189
168
  desc 'version', 'Prints cnvrg current version'
@@ -2745,6 +2724,7 @@ module Cnvrg
2745
2724
  end
2746
2725
  end
2747
2726
 
2727
+
2748
2728
  desc 'download_data_new', 'Download updated files'
2749
2729
  method_option :new_branch, :type => :boolean, :aliases => ["-nb"], :desc => "create new branch of commits"
2750
2730
  method_option :verbose, :type => :boolean, :aliases => ["-v"], :default => false
@@ -4011,8 +3991,6 @@ module Cnvrg
4011
3991
  method_option :image, :type => :string, :aliases => ["-i"], :default => ""
4012
3992
  method_option :data, :type => :string, :aliases => ["-d", "--data"], :default => ""
4013
3993
  method_option :data_commit, :type => :string, :aliases => ["--data_commit"], :default => ""
4014
-
4015
-
4016
3994
  def remote_notebook_old()
4017
3995
  verify_logged_in(true)
4018
3996
  log_start(__method__, args, options)
@@ -909,6 +909,7 @@ module Cnvrg
909
909
  file_path = "#{file_path}.conflict" if conflict
910
910
  dirname = File.dirname file_path
911
911
  download_dir(project_home, dirname) unless dirname.eql? "."
912
+
912
913
  File.open(project_home+"/"+file_path, 'w+') do |file|
913
914
  resp = client.get_object({bucket:bucket,
914
915
  key:file_key}, target: file)
data/lib/cnvrg/dataset.rb CHANGED
@@ -327,8 +327,8 @@ module Cnvrg
327
327
 
328
328
  def list_all_files
329
329
  list = Dir.glob("#{self.local_path}/**/*", File::FNM_DOTMATCH).reject { |x| (x =~ /\/\.{1,2}$/) or (x =~ /^#{self.local_path}\/\.cnvrg\/*/) or (x =~/^#{self.local_path}\/\.cnvrgignore.conflict*/) and not (x =~/^#{self.local_path}\/\.cnvrgignore/) }
330
- list_ignore = self.get_ignore_list()
331
- return list.select{|file| !list_ignore.include? file}
330
+ list_ignore = self.get_ignore_list.map{|ignore_file| "#{self.local_path}/#{ignore_file}"}
331
+ list.select{|file| !list_ignore.include? file}
332
332
  end
333
333
 
334
334
  def write_idx(tree=nil, commit=nil)
data/lib/cnvrg/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Cnvrg
2
- VERSION = '0.6.8'
2
+ VERSION = '0.6.9'
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.6.8
4
+ version: 0.6.9
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: 2018-08-09 00:00:00.000000000 Z
12
+ date: 2018-08-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -431,7 +431,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
431
431
  version: '0'
432
432
  requirements: []
433
433
  rubyforge_project:
434
- rubygems_version: 2.6.12
434
+ rubygems_version: 2.6.14
435
435
  signing_key:
436
436
  specification_version: 4
437
437
  summary: A CLI tool for interacting with cnvrg.io.