bio-grid 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/bin/bio-grid +3 -0
- data/bio-grid.gemspec +2 -2
- data/lib/bio/grid/job.rb +5 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.3
|
data/bin/bio-grid
CHANGED
@@ -60,6 +60,9 @@ optparse = OptionParser.new do |opts|
|
|
60
60
|
options[:uuid] = uuid
|
61
61
|
end
|
62
62
|
|
63
|
+
opts.on("--path PATH1,PATH2 ...",Array,"Set the 'export PATH' directive") do |path|
|
64
|
+
options[:path] = path
|
65
|
+
end
|
63
66
|
opts.on("--keep-scripts","Keep all the running scripts created for all the jobs") {options[:keep] = true}
|
64
67
|
|
65
68
|
opts.on("-h","--help","Display this screen") do
|
data/bio-grid.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "bio-grid"
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Francesco Strozzi"]
|
12
|
-
s.date = "2012-10-
|
12
|
+
s.date = "2012-10-25"
|
13
13
|
s.description = "A BioGem to submit jobs on a queue system"
|
14
14
|
s.email = "francesco.strozzi@gmail.com"
|
15
15
|
s.executables = ["bio-grid"]
|
data/lib/bio/grid/job.rb
CHANGED
@@ -41,7 +41,11 @@ module Bio
|
|
41
41
|
if self.options[:clean]
|
42
42
|
rm_type = (self.options[:output_folder]) ? "rm -fr" : "rm -f"
|
43
43
|
self.instructions << ("#{rm_type} #{self.job_output}*\n")
|
44
|
-
end
|
44
|
+
end
|
45
|
+
|
46
|
+
if self.options[:path]
|
47
|
+
self.instructions.insert(2, "export PATH=$PATH:#{options[:path].join(':')}\n")
|
48
|
+
end
|
45
49
|
end
|
46
50
|
|
47
51
|
def write_runner(filename)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bio-grid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-10-
|
12
|
+
date: 2012-10-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: uuid
|
@@ -146,7 +146,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
146
146
|
version: '0'
|
147
147
|
segments:
|
148
148
|
- 0
|
149
|
-
hash:
|
149
|
+
hash: 1492901013232773549
|
150
150
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
151
151
|
none: false
|
152
152
|
requirements:
|