cnvrg 0.7.9 → 0.8.0

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: 2b19ed887eb07e3f10c710d73849c7578cf10824
4
- data.tar.gz: 397910ae8ce973da74c4b921ab6fc2e59ea63388
3
+ metadata.gz: ed41aace0f169165c4fe37fe93f2c842911d1dea
4
+ data.tar.gz: e4052bcf65b9af805d269a4f8fea935c9784f682
5
5
  SHA512:
6
- metadata.gz: 47f085ae30d741751dfca95a8196cc794460ce36cb1cb9e2847a577cb94936488f8c2abd0571d3cc6e4a894aa01bf2d8fb1efbb7fe8199770bdaca92466ed91a
7
- data.tar.gz: '06699e08c81ed1626ef49ac09f2a5b8deb90b29c41ecd3b1d6b6984c5f4f8351848aea342b397b3186b7dbfffab0459bccbfa9c6fbf744a94c16810d2914a449'
6
+ metadata.gz: c6ead169cf675632f34a76a1e36e45245c3e4cbfe20e988234677036f97b3556c86b4775b18cc134ee2cefe8287950f4f148ac3c2d8515ba74de66c4593b4a91
7
+ data.tar.gz: 6169ad2276f32fa5d86dcfbbc6a24fcaecb60b1c68f322af5e4ff5585de986c809abe2c4dc66465218a91491fb53c34b0e27cbadda0d20b7c96fd9c8289acfc1
@@ -17,14 +17,14 @@ module Cnvrg
17
17
  if File.exist? home_dir+"/.cnvrg/config.yml"
18
18
  config = YAML.load_file(home_dir+"/.cnvrg/config.yml")
19
19
  else
20
- return "https://app.cnvrg.io/api"
20
+ return "https://cnvrg.io/api"
21
21
  end
22
22
 
23
23
  rescue
24
- return "https://app.cnvrg.io/api"
24
+ return "https://cnvrg.io/api"
25
25
  end
26
26
  if !config or config.empty? or config.to_h[:api].nil?
27
- return "https://app.cnvrg.io/api"
27
+ return "https://cnvrg.io/api"
28
28
  else
29
29
  return config.to_h[:api]
30
30
  end
@@ -2317,7 +2317,7 @@ module Cnvrg
2317
2317
  if result["added"].empty? and result["updated_on_local"].empty? and result["deleted"].empty?
2318
2318
  msg = "#{check} Project is up to date"
2319
2319
  if return_id
2320
- Cnvrg::Logger.jsonify(msg: msg, success: true)
2320
+ Cnvrg::Logger.jsonify_message(msg: msg, success: true)
2321
2321
  else
2322
2322
  log_message(msg, Thor::Shell::Color::GREEN, (((options["sync"] or sync) and !direct) ? false : true))
2323
2323
  end
@@ -2961,7 +2961,7 @@ module Cnvrg
2961
2961
  method_option :data_query, :type => :string, :aliases => ["-q", "--query"], :default => nil
2962
2962
  method_option :git_commit, :type => :string, :aliases => [ "--git_commit"], :default => nil
2963
2963
  method_option :git_branch, :type => :string, :aliases => [ "--git_branch"], :default => nil
2964
- method_option :restart_if_stuck, :type => :boolean, :aliases => ["--restart","--restart_if_stuck"], :default => nil
2964
+ method_option :restart_if_stuck, :type => :boolean, :aliases => ["--restart"], :default => nil
2965
2965
  method_option :local_folders, :type => :string, :aliases => ["--local_folders"], :default => nil
2966
2966
 
2967
2967
  def run(*cmd)
@@ -3003,7 +3003,6 @@ module Cnvrg
3003
3003
  git_branch = options["git_branch"]
3004
3004
  restart_if_stuck = options["restart_if_stuck"]
3005
3005
 
3006
-
3007
3006
  options_hash = Hash[options]
3008
3007
 
3009
3008
  if local
@@ -3377,7 +3376,6 @@ module Cnvrg
3377
3376
  method_option :local_folders, :type => :string, :aliases => ["--local_folders"], :default => nil
3378
3377
 
3379
3378
  def exec_remote(*cmd)
3380
-
3381
3379
  verify_logged_in(true)
3382
3380
  log_start(__method__, args, options)
3383
3381
  working_dir = is_cnvrg_dir
@@ -3444,7 +3442,7 @@ module Cnvrg
3444
3442
  git_branch = options["git_branch"]
3445
3443
  options_hash = Hash[options]
3446
3444
  local_folders_options = options["local_folders"]
3447
- options_hash.except!("schedule", "machine_type", "image", "upload_output", "grid", "data", "data_commit", "title",
3445
+ options_hash.except!("schedule", "machine_type", "image", "upload_output", "grid", "data", "data_commit",
3448
3446
  "local", "small", "medium", "large", "gpu", "gpuxl", "gpuxxl","max_time","dataset_only_tree",
3449
3447
  "data_query", "git_commit","git_branch", "restart_if_stuck","local_folders" )
3450
3448
  exec_options = options_hash.map {|x| "--#{x[0]}=#{x[1]}"}.flatten.join(" ")
@@ -1,5 +1,4 @@
1
1
  module Cnvrg
2
-
3
- VERSION = '0.7.9'
2
+ VERSION = '0.8.0'
4
3
  end
5
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.9
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yochay Ettun