emmy-engine 0.2.11 → 0.2.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/emmy/runner.rb +3 -11
- data/lib/emmy/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0214e3559c17d808c8b258a6275a0b379c03601a
|
4
|
+
data.tar.gz: e4ce42ae4fd039c7d63d69b66e7a5769575e895e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d782395dd4c7bd7435386c2f7362d345ffd7563c18764e7a836b0216d81fdd8191c3908061081a69b134366e773c168e278cee7b31e52c34d38c64e930a57ae0
|
7
|
+
data.tar.gz: c2a26cdef7e15ec34c15468d89b86b301f14b1f361b3f27480890426d71c0c665bed8e8db8c7ac6e3d7cdf9c1edcf38ca9587153a114717ce2e4b8195dd0bf3e
|
data/lib/emmy/runner.rb
CHANGED
@@ -126,8 +126,6 @@ module Emmy
|
|
126
126
|
# Boot instance
|
127
127
|
instance!
|
128
128
|
|
129
|
-
set_effective_user
|
130
|
-
|
131
129
|
scope_pid(Process.pid) do |pid|
|
132
130
|
puts pid
|
133
131
|
File.umask(0000)
|
@@ -221,12 +219,6 @@ module Emmy
|
|
221
219
|
end
|
222
220
|
end
|
223
221
|
|
224
|
-
def set_effective_user
|
225
|
-
EventMachine.set_effective_user config.user if config.user
|
226
|
-
config.user = nil
|
227
|
-
config.group = nil
|
228
|
-
end
|
229
|
-
|
230
222
|
def backend_file
|
231
223
|
thin = (config.backend == 'backend') ? EmmyExtends::Thin::EMMY_BACKEND : nil rescue nil
|
232
224
|
backends = [
|
@@ -242,7 +234,7 @@ module Emmy
|
|
242
234
|
end
|
243
235
|
|
244
236
|
def scope_pid(pid)
|
245
|
-
FileUtils.mkdir_p(File.dirname(config.pid))
|
237
|
+
FileUtils.mkdir_p(File.dirname(config.pid))
|
246
238
|
stop_pid(config.pid)
|
247
239
|
File.open(config.pid, 'w') { |f| f.write(pid) }
|
248
240
|
if block_given?
|
@@ -272,12 +264,12 @@ module Emmy
|
|
272
264
|
|
273
265
|
def bind_standard_streams
|
274
266
|
STDIN.reopen("/dev/null")
|
275
|
-
STDOUT.reopen(config.stdout, "a")
|
267
|
+
STDOUT.reopen(config.stdout, "a") if config.stdout
|
276
268
|
|
277
269
|
if config.stdout == config.stderr
|
278
270
|
STDERR.reopen(STDOUT)
|
279
271
|
else
|
280
|
-
STDERR.reopen(config.stderr, "a")
|
272
|
+
STDERR.reopen(config.stderr, "a") if config.stderr
|
281
273
|
end
|
282
274
|
end
|
283
275
|
|
data/lib/emmy/version.rb
CHANGED