scout-gear 10.8.1 → 10.8.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
  SHA256:
3
- metadata.gz: a16e6fadbdab77f5dd56efff644adb5b79c7765642d87cee21f297eb4e783bee
4
- data.tar.gz: 2d4e225ec569e3fc8f569835b865effc6b3428e23b6feba3d4f9e8d092cb8a13
3
+ metadata.gz: a469436e6ab560158eead4f0fae044ebddebe65d611a97a69837ab7884cad3e4
4
+ data.tar.gz: a60763c026694b77083f23cf14784e4e6575bd34886980c4af28ead001f8590e
5
5
  SHA512:
6
- metadata.gz: 3103bc1c224105e7a5d5ac74181a62c6457d6b38cb4f59db2615be3962cef24777f25918977d738c02903b0b831606991c1015b2a7fa77fb03def9fce1b29cc7
7
- data.tar.gz: a09e7bf564fc5e4711bee14df56b7e8cd108b52cd9f02318d255964b58a9bc7585829a411629733c9cdd78060ac8d9b932491924d8227c03540fe93f55d04ccf
6
+ metadata.gz: 5620d8f89b1c5b7bff57c21c2fb28bac8c31168220a7fd8b9804179e9381b75603e9844440e233f07c0d80ebc7de8f684235a34297263ca927679a4f08aa348c
7
+ data.tar.gz: b91fb51fec1e97b351a2d7a91b07186498b49d2b8bdf4561bb806b7b38cf45c2c2239642830bc1bfb9909b2f5ed7f173b3ce3707ca2f9fd799fd89d246217fa3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 10.8.1
1
+ 10.8.2
data/scout-gear.gemspec CHANGED
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: scout-gear 10.8.1 ruby lib
5
+ # stub: scout-gear 10.8.2 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "scout-gear".freeze
9
- s.version = "10.8.1".freeze
9
+ s.version = "10.8.2".freeze
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
13
13
  s.authors = ["Miguel Vazquez".freeze]
14
- s.date = "2025-06-12"
14
+ s.date = "2025-06-13"
15
15
  s.description = "Scout gear: workflow, TSVs, persistence, entities, associations, and knowledge_bases.".freeze
16
16
  s.email = "mikisvaz@gmail.com".freeze
17
17
  s.executables = ["scout".freeze]
data/scout_commands/glob CHANGED
@@ -0,0 +1,90 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'scout-gear'
4
+
5
+ $0 = "scout #{$previous_commands.any? ? $previous_commands*" " + " " : "" }#{ File.basename(__FILE__) }" if $previous_commands
6
+
7
+ options = SOPT.setup <<EOF
8
+
9
+ Find files with glob
10
+
11
+ $ #{$0} [<options>] (<resource> <path>|<path>)
12
+
13
+ -h--help Print this help
14
+ -r--requires* Files to require; 'all' for all in Scout.etc.requires
15
+ -lw--load_workflow* Files to require; 'all' for all in Scout.etc.requires
16
+ -w--where* Where to look for the path
17
+ EOF
18
+ if options[:help]
19
+ if defined? scout_usage
20
+ scout_usage
21
+ else
22
+ puts SOPT.doc
23
+ end
24
+ exit 0
25
+ end
26
+
27
+ resource, path = ARGV
28
+ path, resource = resource, nil if path.nil?
29
+
30
+ raise MissingParameterException.new(:path) if path.nil?
31
+
32
+ case options[:workflows]
33
+ when nil, false, "false", "none"
34
+ when "all"
35
+ Scout.etc.workflows.list.each do |workflow|
36
+ Workflow.require_workflow file
37
+ end if Scout.etc.workflows.exists?
38
+ else
39
+ options[:workflows].split(/[ ,;|]/).each do |workflow|
40
+ Workflow.require_workflow workflow
41
+ end
42
+ end
43
+
44
+ case options[:requires]
45
+ when nil, false, "false", "none"
46
+ when "all"
47
+ Scout.etc.requires.list.each do |file|
48
+ require file
49
+ end if Scout.etc.requires.exists?
50
+ else
51
+ options[:requires].split(/[ ,;|]/).each do |file|
52
+ require file
53
+ end
54
+ end
55
+
56
+ location = nil
57
+ where = options[:where]
58
+ all = options[:all]
59
+
60
+ begin
61
+ resource = Workflow.require_workflow resource
62
+ rescue
63
+ begin
64
+ resource = Kernel.const_get(resource)
65
+ rescue
66
+ raise "Resource not found: #{ resource }"
67
+ end
68
+ end if resource
69
+
70
+ path = (resource || Scout)[path.dup]
71
+
72
+ if where.nil? || where == 'all' || path.path_maps.include?(where.to_sym)
73
+ case where
74
+ when nil
75
+ location = path.glob
76
+ when 'all'
77
+ location = path.glob_all
78
+ else
79
+ location = path.find(where).glob
80
+ end
81
+
82
+ if Array === location
83
+ puts location * "\n"
84
+ else
85
+ location = nil if ! Open.exists?(location)
86
+ puts location
87
+ end
88
+ else
89
+ raise ParameterException, "Where '#{where}' not identified. Try scout-camp if looking for a remote file"
90
+ end
@@ -18,7 +18,7 @@ $ #{$0} [<options>] <workflow> <task>
18
18
  -h--help Print this help
19
19
  --nostream Disable job streaming
20
20
  --update Update jobs with newer dependencies
21
- --deploy* Deploy mode: serial, local, or SLURM (default 'serial')
21
+ --deploy* Deploy mode: serial, local, queue, or SLURM (default 'serial')
22
22
  --fork Fork and return path
23
23
  --load_inputs* Directory or file with inputs files to load
24
24
  --save_inputs* Directory or tar.gz file path to store inputs
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scout-gear
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.8.1
4
+ version: 10.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-06-12 00:00:00.000000000 Z
10
+ date: 2025-06-13 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: scout-essentials