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 +4 -0
- data/bin/full_lengther_next +9 -1
- data/lib/full_lengther_next.rb +1 -1
- data/lib/full_lengther_next/classes/my_worker.rb +1 -1
- metadata +2 -2
data/History.txt
CHANGED
data/bin/full_lengther_next
CHANGED
@@ -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,
|
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
|
data/lib/full_lengther_next.rb
CHANGED
@@ -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.
|
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-
|
13
|
+
date: 2012-02-07 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: xml-simple
|