miga-base 1.2.8.2 → 1.2.9.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6605edc35cd0b2aec6d095653ff1d9604df81d6a57e341a290cbd213bb18fee3
4
- data.tar.gz: 2f811051db25da424bdf9f9c89390a4e0cac33fb3c6330e255b369d171e8a4b9
3
+ metadata.gz: '091cbb355cb05e9f9b78a84222ce575755e4f5fc134b7b86c3543a40297776ce'
4
+ data.tar.gz: 04b636a84a89030128b4a267a8a0c49013161fc753c7e7f5fe29b767f4095ee4
5
5
  SHA512:
6
- metadata.gz: 252fe9abe5ce14ebe86c5250716b9ce541f1faf510bd36ae2d33f4f15f964f3ec735a66db9fa11503b74fb82f16d6a2a5c43d6df3a71b67dacec65462425d759
7
- data.tar.gz: ef734003e57818b155347ce591e9683420ecfa00cd5b4398c0ed1485fc23108a74d9bd91980d6a2bb4c2481c3d1027805b9083fb9add802b5a30f140926c996d
6
+ metadata.gz: b85165b51ec14d4fb3d78eb7945938b253e53d1aafee6593252dc54bd8202bc5709812cbbc22cc1d01a1b351f4843769e77aab1f92447a68a0ebe604e0adf150
7
+ data.tar.gz: e7edbc1aeec3119d69503fef00be330783eef5afb9e03dc24077ed87e596d1c7f8bac325e7d45caacda7924bcec442d5e0dbc6a90e5cb506ae7b77f73f06840f
@@ -52,6 +52,12 @@ class MiGA::Cli::Action::Init < MiGA::Cli::Action
52
52
  'Type of daemon launcher, one of: bash, ssh, qsub, msub, slurm',
53
53
  "By default: interactive (#{cli[:dtype]} if --auto)"
54
54
  ) { |v| cli[:dtype] = v.to_sym }
55
+ %w[R ruby python].each do |bin|
56
+ opt.on(
57
+ "--path-to-#{bin} STRING",
58
+ "Use this path to #{bin} instead of testing for executables"
59
+ ) { |v| cli[:"path_to_#{bin}"] = v }
60
+ end
55
61
  opt.on(
56
62
  '--ask-all',
57
63
  'Ask for the location of all software',
@@ -130,8 +136,13 @@ class MiGA::Cli::Action::Init < MiGA::Cli::Action
130
136
  fh.each_line do |ln|
131
137
  r = define_software(ln) or next
132
138
  cli.print "Testing #{r[0]}#{" (#{r[3]})" if r[3]}... "
133
- path = find_software(r[1])
134
- paths[r[1]] = File.expand_path(r[1], path).shellescape
139
+ if cli[:"path_to_#{r[1]}"]
140
+ paths[r[1]] = cli[:"path_to_#{r[1]}"]
141
+ cli.puts "user-provided: #{paths[r[1]]}"
142
+ else
143
+ path = find_software(r[1])
144
+ paths[r[1]] = File.expand_path(r[1], path).shellescape
145
+ end
135
146
  end
136
147
  end
137
148
  rc_fh.puts 'export PATH="$MIGA_PATH$PATH"'
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.2, 8, 2].freeze
15
+ VERSION = [1.2, 9, 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 relese.
23
- VERSION_DATE = Date.new(2022, 8, 14)
23
+ VERSION_DATE = Date.new(2022, 10, 15)
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.2.8.2
4
+ version: 1.2.9.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: 2022-08-14 00:00:00.000000000 Z
11
+ date: 2022-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: daemons