File: supervisord.rb

package info (click to toggle)
ruby-foreman 0.90.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 584 kB
  • sloc: ruby: 2,020; sh: 88; makefile: 8
file content (16 lines) | stat: -rw-r--r-- 281 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require "erb"
require "foreman/export"

class Foreman::Export::Supervisord < Foreman::Export::Base

  def export
    super

    Dir["#{location}/#{app}.conf"].each do |file|
      clean file
    end

    write_template "supervisord/app.conf.erb", "#{app}.conf", binding
  end

end