Class: PleaseRun::Platform::Upstart

Inherits:
Base
  • Object
show all
Defined in:
lib/pleaserun/platform/upstart.rb

Overview

The Upstart platform implementation.

If you use Ubuntu (8.10 to present) or CentOS 6 this is for you.

Instance Method Summary collapse

Methods inherited from Base

#all_environment_variables, #default_file, #initialize, #install_actions, #log_path, #log_path_stderr, #log_path_stdout, #parsed_environment_variables, #platform, #render, #render_template, #safe_filename, #sysconfig_file, #template_path

Methods included from MustacheMethods

#escaped, #escaped_args, #quoted, #shell_args, #shell_continuation, #shell_quote

Methods included from Configurable

#configurable_setup, included, #validate

Constructor Details

This class inherits a constructor from PleaseRun::Platform::Base

Instance Method Details

#filesObject



7
8
9
10
11
12
# File 'lib/pleaserun/platform/upstart.rb', line 7

def files
  return Enumerator::Generator.new do |out|
    out.yield(safe_filename("/etc/init/{{ name }}.conf"), render_template("init.conf"))
    out.yield(safe_filename("/etc/default/{{ name }}"), render_template("default"))
  end
end