Sha256: 67c51c7f04aa37917999a06405c123f06b48e0678e6f747922279fb5f533e074

Contents?: true

Size: 374 Bytes

Versions: 2

Compression:

Stored size: 374 Bytes

Contents

class Eye::Dsl::ProcessOpts < Eye::Dsl::Opts

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

  alias xmonitor_children nop

  def application
    parent.try(:parent)
  end
  alias app application
  alias group parent

end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
reel-eye-0.3.2 lib/eye/dsl/process_opts.rb
eye-0.3.2 lib/eye/dsl/process_opts.rb