module Citrin::Helpers

Public Instance Methods

database_template_file(env) click to toggle source
# File lib/citrin/helpers.rb, line 7
def database_template_file(env)
  env ||= "prod"
  File.dirname(__FILE__)+"/../../templates/#{env}.database.erb"
end
logrotate_config_template(app) click to toggle source
# File lib/citrin/helpers.rb, line 16
def logrotate_config_template(app)
  File.dirname(__FILE__)+"/../../templates/logrotate.erb"
end
rails_app_log_file(app) click to toggle source
# File lib/citrin/helpers.rb, line 12
def rails_app_log_file(app)
  "#{app.app_root}/log/#{app.fullenv}.log"
end
webserver_template_file(env) click to toggle source
# File lib/citrin/helpers.rb, line 2
def webserver_template_file(env)
  env ||= "prod"
  File.dirname(__FILE__)+"/../../templates/#{env}_virtualhost.erb"
end