Class: PleaseRun::Platform::Runit
- Defined in:
- lib/pleaserun/platform/runit.rb
Overview
The platform implementation for runit
Learn what runit is here: smarden.org/runit/
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
#files ⇒ Object
15 16 17 18 19 20 |
# File 'lib/pleaserun/platform/runit.rb', line 15 def files return Enumerator::Generator.new do |enum| enum.yield(safe_filename("{{ service_path }}/{{ name }}/run"), render_template('run')) enum.yield(safe_filename("{{ service_path }}/{{ name}}/log/run"), render_template('log')) end end |