foreman_god 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -142,20 +142,13 @@ module ForemanGod
142
142
 
143
143
  w.start = wrap_command(process.expanded_command(env))
144
144
 
145
+ # Only set the uid if the user is different from the current user
145
146
  if user_name && (Etc.getlogin != user_name)
146
- # Only set the uid if the user is different from the current user
147
147
  w.uid = user_name
148
148
  w.gid = group_name
149
149
  end
150
150
 
151
- # w.gid = ?
152
-
153
151
  w.transition(:up, :restart) do |on|
154
- on.condition(:memory_usage) do |c|
155
- c.above = 350.megabytes
156
- c.times = 2
157
- end
158
-
159
152
  on.condition(:foreman_restart_file_touched) do |c|
160
153
  c.interval = 5.seconds
161
154
  # Should we make this path configurable?
@@ -1,3 +1,3 @@
1
1
  module ForemanGod
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_god
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-21 00:00:00.000000000 Z
12
+ date: 2012-11-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: foreman