Class: NginxStage::NginxProcessGenerator
- Defined in:
- lib/nginx_stage/generators/nginx_process_generator.rb
Overview
This generator generates/controls the per-user NGINX process.
Instance Method Summary collapse
-
#signal ⇒ String
The signal to send to the per-user NGINX process.
Methods inherited from Generator
_options, add_hook, add_option, #create_file, desc, #empty_directory, footer, hooks, #initialize, #invoke, options, rem_hook, rem_option, #template
Methods included from GeneratorHelpers
#add_skip_nginx_support, #add_sub_uri_support, #add_user_support
Constructor Details
This class inherits a constructor from NginxStage::Generator
Instance Method Details
#signal ⇒ String
The signal to send to the per-user NGINX process
27 28 29 30 31 32 |
# File 'lib/nginx_stage/generators/nginx_process_generator.rb', line 27 add_option :signal do { opt_args: ["-s", "--signal=SIGNAL", NginxStage.nginx_signals, "# Send SIGNAL to per-user nginx process: #{NginxStage.nginx_signals.join('/')}"], default: nil } end |