sushi_fabric 0.7.3 → 0.7.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ed4f8e395298758aef808482287e2bf1c5a0bcfe
4
- data.tar.gz: d97617cc762c64bf0835cb76a31a6a1dacd51e43
3
+ metadata.gz: 3e5fb02a435be2698610bdb4af94b753784fcb3b
4
+ data.tar.gz: 3de84c0240f0df13c36bcacf83c7e37b5b4c5402
5
5
  SHA512:
6
- metadata.gz: 6ced57e208f262dd3c0018d5fb2f100961c10fd420a0d23b7330f93a9b6898cd5a2159775b81d313719f92549b0b66e4c22d36aff2a6c7281743d30f28eced28
7
- data.tar.gz: d369c6a5bbaebaeff3b7b2522544cec99b5e092e1b9c3f4b6900a398e4be736327d1f90728103e4011f2c05f9b3498af030c003f4f6c8af891785b6549b80091
6
+ metadata.gz: 481cac5dac220f4b597f117fe1228bb10203cd22154e5100d9193a43f3bd7ce8a6e80fa3d7c4c94ec57c8becb82adb8a33dd76e81adae75d8b4cffa6377403c8
7
+ data.tar.gz: 5a7e899a7faa8fc7a1513403109f56e7cc1aa1d8420ecd2cfd226b7679f8840c3287b2f11c9bf0d108cbd7a17c1470f9a8b6596a9b698995f03dffafa05ac728
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # encoding: utf-8
3
- # Version = '20170410-034927'
3
+ # Version = '20170413-113844'
4
4
 
5
5
  require 'csv'
6
6
  require 'fileutils'
@@ -367,16 +367,8 @@ class SushiApp
367
367
  FileUtils.mkdir_p(@job_script_dir)
368
368
  end
369
369
  def check_latest_module_version(mod)
370
- command = "module whatis #{mod}"
371
- IO.popen(command) do |io|
372
- latest_mod = nil
373
- while line = io.gets
374
- unless line.chomp.strip.empty?
375
- latest_mod = line.split.first
376
- break
377
- end
378
- end
379
- end
370
+ command_out = %x[ bash -lc "source #{@module_source}; module whatis #{mod} 2>&1" ]
371
+ latest_mod = command_out.split.first
380
372
  latest_mod = nil if latest_mod == "Failed"
381
373
  latest_mod
382
374
  end
@@ -398,10 +390,10 @@ class SushiApp
398
390
  ""
399
391
  end
400
392
  module_add_commands = if @modules and !@modules.empty?
401
- #modules_with_version = @modules.map{|mod| check_latest_module_version(mod)}
402
- #modules_with_version.compact!
403
- #"module add #{modules_with_version.join(' ')}"
404
- "module add #{@modules.join(' ')}"
393
+ modules_with_version = @modules.map{|mod| check_latest_module_version(mod)}
394
+ modules_with_version.compact!
395
+ "module add #{modules_with_version.join(' ')}"
396
+ #"module add #{@modules.join(' ')}"
405
397
  else
406
398
  ""
407
399
  end
@@ -1,3 +1,3 @@
1
1
  module SushiFabric
2
- VERSION = "0.7.3"
2
+ VERSION = "0.7.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sushi_fabric
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.3
4
+ version: 0.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Functional Genomics Center Zurich
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-10 00:00:00.000000000 Z
11
+ date: 2017-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler