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 CHANGED
@@ -1 +1 @@
1
- 0.3.2
1
+ 0.3.3
@@ -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
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "bio-grid"
8
- s.version = "0.3.2"
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"
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"]
@@ -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.2
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 00:00:00.000000000 Z
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: -3879853977881312685
149
+ hash: 1492901013232773549
150
150
  required_rubygems_version: !ruby/object:Gem::Requirement
151
151
  none: false
152
152
  requirements: