cnvrg 0.7.9 → 0.8.0
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 +4 -4
- data/lib/cnvrg/api.rb +3 -3
- data/lib/cnvrg/cli.rb +3 -5
- data/lib/cnvrg/version.rb +1 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed41aace0f169165c4fe37fe93f2c842911d1dea
|
4
|
+
data.tar.gz: e4052bcf65b9af805d269a4f8fea935c9784f682
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6ead169cf675632f34a76a1e36e45245c3e4cbfe20e988234677036f97b3556c86b4775b18cc134ee2cefe8287950f4f148ac3c2d8515ba74de66c4593b4a91
|
7
|
+
data.tar.gz: 6169ad2276f32fa5d86dcfbbc6a24fcaecb60b1c68f322af5e4ff5585de986c809abe2c4dc66465218a91491fb53c34b0e27cbadda0d20b7c96fd9c8289acfc1
|
data/lib/cnvrg/api.rb
CHANGED
@@ -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://
|
20
|
+
return "https://cnvrg.io/api"
|
21
21
|
end
|
22
22
|
|
23
23
|
rescue
|
24
|
-
return "https://
|
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://
|
27
|
+
return "https://cnvrg.io/api"
|
28
28
|
else
|
29
29
|
return config.to_h[:api]
|
30
30
|
end
|
data/lib/cnvrg/cli.rb
CHANGED
@@ -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.
|
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"
|
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",
|
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(" ")
|
data/lib/cnvrg/version.rb
CHANGED