fanforce-workers 0.9.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/lib/fanforce/workers/version.rb +1 -1
- data/lib/fanforce/workers/workers.rb +11 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZTFkMDRiYzYwMGJhNzA2ZGRmNTAwYjIzODY0YzViZGE2MTliMzlkMw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MDk5YzYxYTVlYjg3OWNkZDdlNmQ2ZGRkYzU0ZjVjZTIwZDRlYjkwNQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MDI2YTQ2Y2JiMTVhMjdhM2M0YTFhM2U5YTNjMmVhNTA2ZjZiNzI5ZTRhM2Rl
|
10
|
+
MDI4MjhmOTEzZjE4MzQ1MmVkZjVjOWVjODRhOWI1MGRjOWRhZGY0ZTM4OTMw
|
11
|
+
ODZhY2I4ODg1MjljMzMyMDZkMGI0YTcwMTEzZmUwZDhlYTI5ZmQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NTRiYmM4NDFhNmM3MzhjODQzNzBlODI2ZjZjMjAyNWY2MTRjMzVhNzEzY2U3
|
14
|
+
ODZkZmJjNGNlZTY4NGZkYzczY2I3M2U4M2JkZjMzYTYxNWQyYmNkOTRiMDQy
|
15
|
+
YWU0NzlmMWE2MmUxZmE1ZGI0MmM1NTkyZjgyYzQ2MzlhZTZhNTU=
|
@@ -129,8 +129,18 @@ class Fanforce::Workers
|
|
129
129
|
@current_job
|
130
130
|
end
|
131
131
|
|
132
|
+
def self.load_env
|
133
|
+
if File.exists?('.developmentenv.rb')
|
134
|
+
require '.developmentenv'
|
135
|
+
elsif File.exists?('.stagingenv.rb')
|
136
|
+
require '.stagingenv'
|
137
|
+
elsif File.exists?('.productionenv.rb')
|
138
|
+
require '.productionenv'
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
132
142
|
def self.run(worker_data, &code_block)
|
133
|
-
|
143
|
+
load_env
|
134
144
|
require 'iron_mq'
|
135
145
|
require 'iron_cache'
|
136
146
|
require 'fanforce/api'
|