full_lengther_next 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 0.0.2 2012-02-07
2
+
3
+ Added FULL_LENGTH_NEXT_INIT environment variable for clustered installations
4
+
1
5
  === 0.0.1 2012-01-30
2
6
 
3
7
  * 1 major enhancement:
@@ -125,6 +125,14 @@ ROOT_PATH=File.dirname(__FILE__)
125
125
 
126
126
  require 'full_lengther_next'
127
127
 
128
+
129
+ if ENV['FULL_LENGTHER_NEXT_INIT'] && File.exists?(ENV['FULL_LENGTHER_NEXT_INIT'])
130
+ FULL_LENGTHER_NEXT_INIT=File.expand_path(ENV['FULL_LENGTHER_NEXT_INIT'])
131
+ else
132
+ FULL_LENGTHER_NEXT_INIT=File.join($ROOT_PATH,'init_env')
133
+ end
134
+
135
+
128
136
  if ENV['BLASTDB'] && File.exists?(ENV['BLASTDB'])
129
137
  formatted_db_path = ENV['BLASTDB']
130
138
  else # otherwise use ROOTPATH + DB
@@ -163,7 +171,7 @@ custom_worker_file = File.join(ROOT_PATH,'classes','my_worker.rb')
163
171
  MyWorkerManager.init_work_manager(options, options[:chunk_size])
164
172
 
165
173
  # Create server
166
- server = ScbiMapreduce::Manager.new(options[:server_ip],options[:port], options[:workers], MyWorkerManager,custom_worker_file, STDOUT,File.join(ROOT_PATH,'init_env'))
174
+ server = ScbiMapreduce::Manager.new(options[:server_ip],options[:port], options[:workers], MyWorkerManager,custom_worker_file, STDOUT,FULL_LENGTHER_NEXT_INIT)
167
175
  server.chunk_size=options[:chunk_size]
168
176
  # launch server
169
177
  server.start_server
@@ -7,7 +7,7 @@ $: << File.expand_path(File.join(ROOT_PATH, 'classes'))
7
7
 
8
8
 
9
9
  module FullLengtherNext
10
- VERSION = '0.0.1'
10
+ VERSION = '0.0.2'
11
11
 
12
12
  FULLLENGHTER_VERSION = VERSION
13
13
  end
@@ -66,7 +66,7 @@ class MyWorker < ScbiMapreduce::Worker
66
66
  user_db_name = @options[:user_db].sub(/.+\//,'')
67
67
  end
68
68
 
69
- if !File.exists?("#{@options[:user_db]}.psq")
69
+ if !File.exists?("#{File.expand_path(@options[:user_db])}.psq")
70
70
  puts "user database: #{@options[:user_db]} was not found"
71
71
  exit
72
72
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: full_lengther_next
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.1
5
+ version: 0.0.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Noe Fernandez & Dario Guerrero
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-02-06 00:00:00 Z
13
+ date: 2012-02-07 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: xml-simple