Method: Bluepill::ProcessFactory#create_process
- Defined in:
- lib/bluepill/dsl/process_factory.rb
#create_process(name, pids_dir) ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/bluepill/dsl/process_factory.rb', line 13 def create_process(name, pids_dir) assign_default_pid_file(name, pids_dir) process = ProcessProxy.new(name, @attributes, @process_block) child_process_block = @attributes.delete(:child_process_block) @attributes[:child_process_factory] = ProcessFactory.new(@attributes, child_process_block) if @attributes[:monitor_children] self.validate_process! process process.to_process end |