emmy-engine 0.2.9 → 0.2.10
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 +8 -0
- 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: 20a80e5c735f8cc86dbdbaacbfcfccf63daa5ee9
|
4
|
+
data.tar.gz: 482aecd48f6af1deb88d89c5cfac4698a753d82f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42cd330e2e2f90e5c439f55ac967a9eaf35f56a4fb58deb80565fe9c9e3f44dd5397df78db3d6fbf45c4331518dec0ce173f273a76fe11b69ff1682c24407980
|
7
|
+
data.tar.gz: 1675b304f69cff368b26d711849269337eabada83d478a35e0f42016fe973b102cc2556b3c3f5317c677c33c145b5d767e55bbdf933b256fb828deb5563d8338
|
data/lib/emmy/runner.rb
CHANGED
@@ -126,6 +126,8 @@ module Emmy
|
|
126
126
|
# Boot instance
|
127
127
|
instance!
|
128
128
|
|
129
|
+
set_effective_user
|
130
|
+
|
129
131
|
scope_pid(Process.pid) do |pid|
|
130
132
|
puts pid
|
131
133
|
File.umask(0000)
|
@@ -219,6 +221,12 @@ module Emmy
|
|
219
221
|
end
|
220
222
|
end
|
221
223
|
|
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
|
+
|
222
230
|
def backend_file
|
223
231
|
thin = (config.backend == 'backend') ? EmmyExtends::Thin::EMMY_BACKEND : nil rescue nil
|
224
232
|
backends = [
|
data/lib/emmy/version.rb
CHANGED