Class: Eye::Dsl::ProcessOpts

Inherits:
Opts show all
Defined in:
lib/eye/dsl/process_opts.rb

Constant Summary

Constants inherited from Opts

Opts::BOOL_OPTIONS, Opts::INTERVAL_OPTIONS, Opts::STR_OPTIONS

Instance Attribute Summary

Attributes inherited from PureOpts

#config, #full_name, #name, #parent

Instance Method Summary collapse

Methods inherited from Opts

#checks, #clear_bundler_env, #daemonize!, #initialize, #nochecks, #nonotify, #notify, #notriggers, #scoped, #set_environment, #set_gid, #set_stdall, #set_uid, #triggers, #with_server

Methods inherited from PureOpts

#allow_options, create_options_methods, #disallow_options, #include, #initialize, #nop, #not_seed_options, #with_condition

Constructor Details

This class inherits a constructor from Eye::Dsl::Opts

Instance Method Details

#applicationObject Also known as: app



12
13
14
# File 'lib/eye/dsl/process_opts.rb', line 12

def application
  parent.try(:parent)
end

#monitor_children(&block) ⇒ Object



3
4
5
6
7
8
# File 'lib/eye/dsl/process_opts.rb', line 3

def monitor_children(&block)
  opts = Eye::Dsl::ChildProcessOpts.new
  opts.instance_eval(&block) if block
  @config[:monitor_children] ||= {}
  @config[:monitor_children].merge!(opts.config)
end