miga-base 1.0.4.0 → 1.0.5.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/miga/cli/action/run.rb +1 -1
- data/lib/miga/cli/action/wf.rb +1 -0
- data/lib/miga/common/base.rb +10 -2
- data/lib/miga/daemon.rb +1 -0
- data/lib/miga/version.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc2d6a45a59d47e3490d1e6bbe728961abfc28002c945c0fc371b24277f7abcd
|
4
|
+
data.tar.gz: c20265a37c53e403858c592a72b2de801ab6ce12e48f0fe88d886cea41a94413
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91804137814911287b5f1395e79b28e2805a0584dfb5ff234ca51a2366d17d497acf8a88ee80e18a1b8dd27a1b159ab3433471f82b389fd741825a1f5da57da5
|
7
|
+
data.tar.gz: 97d932379e302a22b2c0f489b5dd6cdd5efe4408c77e9cd32bb3b89efff3bc5f3787d167bc8f46720777dcc4d2efa06fb9b82f77e1903735a4b6e631e20be6f9
|
data/lib/miga/cli/action/run.rb
CHANGED
@@ -34,7 +34,7 @@ class MiGA::Cli::Action::Run < MiGA::Cli::Action
|
|
34
34
|
if cli[:env]
|
35
35
|
cli[:project] ||= ENV['PROJECT']
|
36
36
|
cli[:dataset] ||= ENV['DATASET']
|
37
|
-
cli[:thr]
|
37
|
+
cli[:thr] = ENV['CORES'].to_i unless ENV['CORES'].nil?
|
38
38
|
cli[:result] = File.basename(cli[:result].to_s, '.bash').to_sym
|
39
39
|
end
|
40
40
|
%i[project dataset result].each do |i|
|
data/lib/miga/cli/action/wf.rb
CHANGED
@@ -183,6 +183,7 @@ module MiGA::Cli::Action::Wf
|
|
183
183
|
cmd += ['--json', cli[:daemon_json]] unless cli[:daemon_json].nil?
|
184
184
|
cmd += ['--max-jobs', cli[:jobs]] unless cli[:jobs].nil?
|
185
185
|
cmd += ['--ppn', cli[:threads]] unless cli[:threads].nil?
|
186
|
+
cmd += ['--debug', MiGA::MiGA.debug_trace? ? '2' : '1'] if MiGA::MiGA.debug?
|
186
187
|
cwd = Dir.pwd
|
187
188
|
call_cli(cmd)
|
188
189
|
Dir.chdir(cwd)
|
data/lib/miga/common/base.rb
CHANGED
@@ -29,10 +29,18 @@ class MiGA::MiGA
|
|
29
29
|
##
|
30
30
|
# Send debug message
|
31
31
|
def DEBUG(*args)
|
32
|
-
$stderr.puts(*args) if
|
32
|
+
$stderr.puts(*args) if debug?
|
33
33
|
$stderr.puts(
|
34
34
|
caller.map { |v| v.gsub(/^/, ' ') }.join("\n")
|
35
|
-
) if
|
35
|
+
) if debug_trace?
|
36
|
+
end
|
37
|
+
|
38
|
+
def debug?
|
39
|
+
@@DEBUG ||= false
|
40
|
+
end
|
41
|
+
|
42
|
+
def debug_trace?
|
43
|
+
@@DEBUG_TRACE ||= false
|
36
44
|
end
|
37
45
|
end
|
38
46
|
end
|
data/lib/miga/daemon.rb
CHANGED
data/lib/miga/version.rb
CHANGED
@@ -12,7 +12,7 @@ module MiGA
|
|
12
12
|
# - String indicating release status:
|
13
13
|
# - rc* release candidate, not released as gem
|
14
14
|
# - [0-9]+ stable release, released as gem
|
15
|
-
VERSION = [1.0,
|
15
|
+
VERSION = [1.0, 5, 0].freeze
|
16
16
|
|
17
17
|
##
|
18
18
|
# Nickname for the current major.minor version.
|
@@ -20,7 +20,7 @@ module MiGA
|
|
20
20
|
|
21
21
|
##
|
22
22
|
# Date of the current gem release.
|
23
|
-
VERSION_DATE = Date.new(2021,
|
23
|
+
VERSION_DATE = Date.new(2021, 8, 26)
|
24
24
|
|
25
25
|
##
|
26
26
|
# References of MiGA
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: miga-base
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luis M. Rodriguez-R
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: daemons
|