Class: Foreman::Export::UpstartBoot
- Inherits:
-
Upstart
- Object
- Upstart
- Foreman::Export::UpstartBoot
- Defined in:
- lib/foreman/export/upstart_boot.rb
Instance Method Summary collapse
Instance Method Details
#export ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/foreman/export/upstart_boot.rb', line 5 def export super app = self.app || File.basename(engine.directory) master_config = "#{location}/#{app}.conf" master_config_lines = File.readlines(master_config) File.open(master_config, 'wb') do |f| f.puts "start on runlevel [2345]" master_config_lines.each { |l| f.write(l) } end end |