Class: Eye::Dsl::GroupOpts
- Includes:
- Chain
- Defined in:
- lib/eye/dsl/group_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 included from Chain
Methods inherited from Opts
#checks, #clear_bundler_env, #command, #daemonize!, #initialize, #load_env, #nochecks, #nonotify, #notify, #notriggers, #scoped, #set_environment, #set_gid, #set_stdall, #set_stop_command, #set_uid, #skip_group_action, #stop_signals, #stop_signals=, #syslog, #triggers, #with_server
Methods inherited from PureOpts
#allow_options, create_options_methods, #initialize, #nop, #use, #with_condition, with_parsed_file
Constructor Details
This class inherits a constructor from Eye::Dsl::Opts
Instance Method Details
#disallow_options ⇒ Object
5 6 7 |
# File 'lib/eye/dsl/group_opts.rb', line 5 def [:pid_file, :start_command, :daemonize] end |
#not_seed_options ⇒ Object
9 10 11 |
# File 'lib/eye/dsl/group_opts.rb', line 9 def [:processes, :chain] end |
#process(name, &block) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/eye/dsl/group_opts.rb', line 13 def process(name, &block) Eye::Dsl.check_name(name) Eye::Dsl.debug { "=> process #{name}" } opts = Eye::Dsl::ProcessOpts.new(name, self) opts.instance_eval(&block) @config[:processes] ||= {} @config[:processes][name.to_s] ||= {} Eye::Utils.deep_merge!(@config[:processes][name.to_s], opts.config) if opts.config Eye::Dsl.debug { "<= process #{name}" } opts end |