Sha256: ca65a1b8817267fa0b2a9a8c6b3fd33b9968ef48ab609d6b98fa6a3fd5add590

Contents?: true

Size: 383 Bytes

Versions: 12

Compression:

Stored size: 383 Bytes

Contents

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

  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

  alias xmonitor_children nop

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

end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
reel-eye-0.5.2.1 lib/eye/dsl/process_opts.rb
reel-eye-0.5.2 lib/eye/dsl/process_opts.rb
eye-0.5.2 lib/eye/dsl/process_opts.rb
reel-eye-0.5.1 lib/eye/dsl/process_opts.rb
eye-0.5.1 lib/eye/dsl/process_opts.rb
reel-eye-0.5 lib/eye/dsl/process_opts.rb
eye-0.5 lib/eye/dsl/process_opts.rb
eye-0.4.2 lib/eye/dsl/process_opts.rb
reel-eye-0.4.1 lib/eye/dsl/process_opts.rb
eye-0.4.1 lib/eye/dsl/process_opts.rb
reel-eye-0.4 lib/eye/dsl/process_opts.rb
eye-0.4 lib/eye/dsl/process_opts.rb