rbbt-util 5.26.101 → 5.26.102

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rbbt/hpc.rb +4 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1c25e0ed9f390b6cfe9f13d8a25f9818f01ebeb18721bffe457f2addf13519c3
4
- data.tar.gz: 5ef61ec1c11a6993a37043004306c4a85a96d27dd6e391fdb0a32ecf882fb695
3
+ metadata.gz: dc83df21b5efd5b08da643a23f7864c0782ec1a60bcc761576a3fc5f700ba47d
4
+ data.tar.gz: ec99ffd4debf0bcfc4973771fb0648eaf01989642a2c3d5473c593e97b502727
5
5
  SHA512:
6
- metadata.gz: 43c13e02b198f133a37f8368ac53471ddd456fb6267c902c1acc2c100c6cfd9322002d216e305b21c1e44745d858fe9d18ee782b39cc7a7a94527c010df729fc
7
- data.tar.gz: dce15b38e52af3e5acc274418ef7cdeb9ea1e5b454ebd1ae0e4045182a4585694b23e33ae61876e28f65e8d57ae7100609d70e2abbca7309876a9782a5ea2576
6
+ metadata.gz: c9daad61f5835e65f8b48cd4de72eeb6faf729c201244ea8aa92e441f6805348d6398e9948b555c8b42cf883e430dc9b70ad6dcba028d9bc8e3d69439f99f05c
7
+ data.tar.gz: 2222d37d9ab2027ae2072d06056a87f8ad618a0ce77b979dfa750cd1cde0e7da2d3ebf7fb8907e9a3974aa6f58d3f30d4b2905df396f71065e078492546a0e8d
data/lib/rbbt/hpc.rb CHANGED
@@ -33,8 +33,11 @@ module Marenostrum
33
33
  inputs_dir = options.delete :inputs_dir
34
34
  config_keys = options.delete :config_keys
35
35
 
36
+ user = ENV['USER'] || `whoami`.strip
37
+ group = File.basename(File.dirname(ENV['HOME']))
38
+
36
39
  if contain_and_sync
37
- contain = "/scratch/tmp/rbbt-#{ENV["USER"]}" if contain.nil?
40
+ contain = "/scratch/tmp/rbbt-#{user}" if contain.nil?
38
41
  sync = "~/.rbbt/var/jobs" if sync.nil?
39
42
  wipe_container = "post" if wipe_container.nil?
40
43
  end
@@ -141,8 +144,6 @@ mkdir -p "$SINGULARITY_RUBY_INLINE"
141
144
  EOF
142
145
 
143
146
  if contain
144
- user = ENV['USER'] || `whoami`.strip
145
- group = File.basename(File.dirname(ENV['HOME']))
146
147
  scratch_group_dir = File.join('/gpfs/scratch/', group)
147
148
  projects_group_dir = File.join('/gpfs/projects/', group)
148
149
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbbt-util
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.26.101
4
+ version: 5.26.102
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez