cnvrg 1.6.12 → 1.6.13
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/cli.rb +3 -2
- data/lib/cnvrg/project.rb +6 -1
- data/lib/cnvrg/version.rb +1 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: afddb5aa2de4afe1cdf2511c561ce7ebd8ac0e977ccb8c463bba4b0d85e777d5
|
4
|
+
data.tar.gz: cd4a92cc789b06b33095aec72a74e07de4d4bf186abdb8a720bc6a21c8450664
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff9f9fa18c8f4dc9f7e1bb2a4ae8df45e158c34c808d17887a0f4502342dbc67e9c23bc9922e47ecdfef2e7f8b1edb65ac148d386ba71a48671c92ba33a7bd16
|
7
|
+
data.tar.gz: 7b6d213535ddf7e7564da30a25c20284cee94bba178263ef0ed3b6221ad93c6c9e09292e3842ac72699923c28864a6cb4ad4e9f43b544958f48b0f105a497690
|
data/lib/cnvrg/cli.rb
CHANGED
@@ -2860,8 +2860,9 @@ module Cnvrg
|
|
2860
2860
|
log_start(__method__, args, options)
|
2861
2861
|
log_message('Checking for new updates from remote version', Thor::Shell::Color::BLUE, options["verbose"])
|
2862
2862
|
log_message('Syncing project', Thor::Shell::Color::BLUE, !options["verbose"])
|
2863
|
-
job_slug = options['job_slug']
|
2864
|
-
job_type = options['job_type']
|
2863
|
+
job_slug = options['job_slug'] || ENV['CNVRG_JOB_ID']
|
2864
|
+
job_type = options['job_type'] || ENV['CNVRG_JOB_TYPE']
|
2865
|
+
is_git = ENV['CNVRG_GIT_PROJECT'] == "true" || @project.is_git
|
2865
2866
|
in_exp = options["in_exp"] || (job_slug.present? and job_type.present?)
|
2866
2867
|
in_exp = false if job_type.present? and job_type == "NotebookSession"
|
2867
2868
|
run_download = true
|
data/lib/cnvrg/project.rb
CHANGED
@@ -1,4 +1,7 @@
|
|
1
1
|
require 'fileutils'
|
2
|
+
require 'pathname'
|
3
|
+
|
4
|
+
|
2
5
|
module Cnvrg
|
3
6
|
class Project
|
4
7
|
attr_reader :slug, :owner, :title, :local_path, :working_dir, :is_git, :is_branch, :machines
|
@@ -426,8 +429,10 @@ module Cnvrg
|
|
426
429
|
end
|
427
430
|
list_ignore_new = list_ignore.map{|x| x.gsub("//","/")} rescue []
|
428
431
|
# list.each do |e|
|
432
|
+
project_root = Pathname.new(self.local_path)
|
429
433
|
Parallel.map(list, in_threads: IDXParallelThreads) do |e|
|
430
|
-
|
434
|
+
relative_path = Pathname.new(File.expand_path(e))
|
435
|
+
label = relative_path.relative_path_from(project_root)
|
431
436
|
if not Cnvrg::Files.valid_file_name?(label)
|
432
437
|
raise StandardError.new("#{label} is not a valid file name")
|
433
438
|
end
|
data/lib/cnvrg/version.rb
CHANGED