cnvrg 0.7.1 → 0.7.2

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: 11c1d6358ef98bf5b6372fc3ddf3348cefd64c5a
4
- data.tar.gz: 661547a796ec6a79cd45bb09c9621f4cfb7bace8
3
+ metadata.gz: 35aac629a9fa65e490b3468e51571bd8598d1d73
4
+ data.tar.gz: f31e9351d906d344605e14f338378f3b85cce735
5
5
  SHA512:
6
- metadata.gz: cc98c43afdcabb9b433c8472504ef62ad3fe5a0bb2097b020c907acdba984a73debc56848a98e8d34866c3efca8f2b255370d084cc54a50b4c922ecf4e8943f5
7
- data.tar.gz: 45aef2a6405f28cba33c69feb7202e82b3845d353fcf54283fd0b769306f861e3cb5120faa5a6e19f0db0ba8b38648d5b2ec14273e0e8cc2d839b79ab03fa1a1
6
+ metadata.gz: 07d5e7f4938c2a0503a04e131d149a2a276a94bb70fe2972583d2ceda7150941314e05cdde839e1248765b5455dd730bd989327f893314352494297a24de7934
7
+ data.tar.gz: 3348cec8cc3db1324d37e8fd226a5c6b31d7ada5a219478deb0cf4af4e0a8357d0332612104a8dcf7d743f1189c69ec9453052d473f8ddec83ef12dbf6cbbc86
data/lib/cnvrg/cli.rb CHANGED
@@ -823,13 +823,15 @@ module Cnvrg
823
823
  method_option :commit, :type => :string, :aliases => ["-c", "--commit"], :default => ""
824
824
  method_option :only_tree, :type => :boolean, :aliases => ["-t", "--tree"], :default => false
825
825
  method_option :query, :type => :string, :aliases => ["-q", "--query"], :default => nil
826
+ method_option :read, :type => :boolean, :aliases => ["-r", "--read"], :default => false
826
827
 
827
- def clone_data(dataset_url,only_tree=false,commit=nil,query=nil)
828
+ def clone_data(dataset_url,only_tree=false,commit=nil,query=nil,read=false)
828
829
  begin
829
830
  verify_logged_in(false)
830
831
  log_start(__method__, args, options)
831
832
  commit = options["commit"] || commit
832
833
  only_tree = options["only_tree"] || only_tree
834
+ read = options["read"] || read || false
833
835
 
834
836
 
835
837
  url_parts = dataset_url.split("/")
@@ -879,7 +881,10 @@ module Cnvrg
879
881
  if downloaded_files == files_count
880
882
  Dataset.verify_cnvrgignore_exist(dataset_name, false)
881
883
  @dataset = Dataset.new(dataset_home)
882
- @dataset.write_idx(nil, commit) #nil means, generate idx
884
+ if !read
885
+ @dataset.write_idx(nil, commit) #nil means, generate idx
886
+ end
887
+
883
888
  log_message("#{check} Clone finished successfully", Thor::Shell::Color::GREEN)
884
889
  end
885
890
  else
@@ -3916,6 +3921,7 @@ module Cnvrg
3916
3921
  commit_to_run = forced_commit
3917
3922
  end
3918
3923
  commit_to_run = commit_to_run.presence || project.last_local_commit
3924
+
3919
3925
  res = exp.exec_remote(command, commit_to_run, instance_type, image_slug, schedule, local_timestamp, grid, path_to_cmd, data, data_commit,
3920
3926
  periodic_sync, sync_before_terminate, max_time, ds_sync_options,output_dir,
3921
3927
  data_query, git_commit, git_branch, restart_if_stuck,local_folders_options )
data/lib/cnvrg/data.rb CHANGED
@@ -82,13 +82,15 @@ module Cnvrg
82
82
  method_option :only_tree, :type => :boolean, :aliases => ["-t", "--tree"], :default => false
83
83
  method_option :commit, :type => :string, :aliases => ["-c", "--commit"], :default => nil
84
84
  method_option :query, :type => :string, :aliases => ["-q", "--query"], :default => nil
85
+ method_option :read, :type => :boolean, :aliases => ["-r", "--read"], :default => false
85
86
 
86
87
  def clone(dataset_url)
87
88
  cli = Cnvrg::CLI.new()
88
89
  only_tree =options[:only_tree]
89
90
  commit =options[:commit]
90
91
  query =options[:query]
91
- cli.clone_data(dataset_url, only_tree=only_tree,commit=commit, query=query)
92
+ read = options[:read]
93
+ cli.clone_data(dataset_url, only_tree=only_tree,commit=commit, query=query, read=read)
92
94
  end
93
95
 
94
96
  desc 'data set --url=dataset_url', 'Set dataset url to other url'
@@ -90,7 +90,7 @@ module Cnvrg
90
90
 
91
91
  def exec_remote(command, commit_to_run, instance_type, image_slug,scheduling_query,local_timestamp, grid,path_to_cmd,data, data_commit,periodic_sync,
92
92
  sync_before_terminate, max_time, ds_sync_options=0,output_dir=nil,data_query=nil,
93
- git_commit=nil, git_branch=nil, restart_if_stuck=nil, local_folders=nil)
93
+ git_commit=nil, git_branch=nil, restart_if_stuck=nil, local_folders=nil,title=nil)
94
94
  response = Cnvrg::API.request("users/#{@owner}/projects/#{@project_slug}/experiment/remote", 'POST', {command: command, image_slug: image_slug,
95
95
  commit_sha1: commit_to_run,
96
96
  instance_type: instance_type,
@@ -102,7 +102,8 @@ module Cnvrg
102
102
  periodic_sync:periodic_sync, sync_before_terminate:sync_before_terminate,
103
103
  dataset_sync_options:ds_sync_options,output_dir:output_dir,
104
104
  dataset_query:data_query,git_commit:git_commit,git_branch:git_branch,
105
- restart_if_stuck:restart_if_stuck, local_folders: local_folders })
105
+ restart_if_stuck:restart_if_stuck, local_folders: local_folders, title:title })
106
+
106
107
  return response
107
108
  end
108
109
  def remote_notebook(instance_type, commit, data, data_commit, notebook_type,ds_sync_options=0,data_query=nil)
data/lib/cnvrg/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Cnvrg
2
- VERSION = '0.7.1'
2
+ VERSION = '0.7.2'
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.7.1
4
+ version: 0.7.2
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-09-05 00:00:00.000000000 Z
12
+ date: 2018-09-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler