Sha256: 6c45b22c43f3fb6be3532dc222ce5b267ba51b08467e8635b3dccb5b3165fd47

Contents?: true

Size: 609 Bytes

Versions: 5

Compression:

Stored size: 609 Bytes

Contents

class Eye::Dsl::GroupOpts < Eye::Dsl::Opts

  include Eye::Dsl::Chain

  def disallow_options
    [:pid_file, :start_command, :daemonize]
  end

  def not_seed_options
    [:processes, :chain]
  end

  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] = opts.config if opts.config

    Eye::Dsl.debug "<= process #{name}"
    opts
  end

  alias xprocess nop
  alias application parent
  alias app application

end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
reel-eye-0.5.2.1 lib/eye/dsl/group_opts.rb
reel-eye-0.5.2 lib/eye/dsl/group_opts.rb
eye-0.5.2 lib/eye/dsl/group_opts.rb
reel-eye-0.5.1 lib/eye/dsl/group_opts.rb
eye-0.5.1 lib/eye/dsl/group_opts.rb