Permalink
Browse files

Parameterise username in 'rack.logrotate', passing it in from 'rack a…

…pp'.
  • Loading branch information...
1 parent 5a0166b commit e14b8261144827e6749c4e94d6aba9d949962003 @benhoskings committed Feb 7, 2012
Showing with 4 additions and 4 deletions.
  1. +2 −2 logrotate.rb
  2. +1 −1 logrotate/rack.conf
  3. +1 −1 top level.rb
View
@@ -25,7 +25,7 @@ def conf_dest
as "nginx"
end
-dep 'rack.logrotate' do
+dep 'rack.logrotate', :username do
renders "logrotate/rack.conf"
- as var(:username)
+ as username
end
View
@@ -1,4 +1,4 @@
-/srv/http/<%= var :username %>/current/log/*.log {
+/srv/http/<%= username %>/current/log/*.log {
daily
missingok
rotate 7
View
@@ -29,7 +29,7 @@
requires 'webapp'.with('unicorn', domain, domain_aliases, username, path, listen_host, listen_port, nginx_prefix, enable_ssl, force_ssl)
requires 'web repo'.with(path)
requires 'app bundled'.with(path, env)
- requires 'rack.logrotate'
+ requires 'rack.logrotate'.with(username)
end
dep 'proxied app' do

0 comments on commit e14b826

Please sign in to comment.