Sha256: cc5b95ec26292545bdafa15dd26418574c67a730057aee4cb9263dbdbdeafe6d

Contents?: true

Size: 244 Bytes

Versions: 15

Compression:

Stored size: 244 Bytes

Contents

module Eye::Dsl::Chain

  def chain(opts = {})
    acts = Array(opts[:action] || opts[:actions] || [:start, :restart])

    acts.each do |act|
      @config[:chain] ||= {}
      @config[:chain][act] = opts.merge(action: act)
    end
  end

end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
eye-0.10.1.pre lib/eye/dsl/chain.rb
eye-0.10.0 lib/eye/dsl/chain.rb
eye-0.10.0.alpha2 lib/eye/dsl/chain.rb
eye-0.10.0.alpha lib/eye/dsl/chain.rb
eye-0.9.4.nosigar lib/eye/dsl/chain.rb
eye-0.9.4 lib/eye/dsl/chain.rb
eye-0.9.3 lib/eye/dsl/chain.rb
eye-0.9.2.nosigar lib/eye/dsl/chain.rb
eye-0.9.2 lib/eye/dsl/chain.rb
eye-0.9.1 lib/eye/dsl/chain.rb
eye-0.9.pre lib/eye/dsl/chain.rb
eye-0.8.1 lib/eye/dsl/chain.rb
eye-0.8.celluloid15 lib/eye/dsl/chain.rb
eye-0.8 lib/eye/dsl/chain.rb
eye-0.8.rc lib/eye/dsl/chain.rb