Sha256: 0d1d47e04fb3860f804268983e4d41723b0fe1a2fc685533f7f25febaed73ee1

Contents?: true

Size: 246 Bytes

Versions: 38

Compression:

Stored size: 246 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

38 entries across 38 versions & 3 rubygems

Version Path
eye-0.8.pre2 lib/eye/dsl/chain.rb
eye-0.8.pre lib/eye/dsl/chain.rb
eye-0.7 lib/eye/dsl/chain.rb
eye-0.7.pre lib/eye/dsl/chain.rb
eye-0.6.4 lib/eye/dsl/chain.rb
eye-0.6.3 lib/eye/dsl/chain.rb
eye-0.6.2 lib/eye/dsl/chain.rb
eye-0.6.2.pre lib/eye/dsl/chain.rb
ace-eye-0.6.5 lib/eye/dsl/chain.rb
ace-eye-0.6.4 lib/eye/dsl/chain.rb
eye-0.6.1 lib/eye/dsl/chain.rb
ace-eye-0.6.3 lib/eye/dsl/chain.rb
ace-eye-0.6.2 lib/eye/dsl/chain.rb
ace-eye-0.6.1 lib/eye/dsl/chain.rb
eye-0.6 lib/eye/dsl/chain.rb
reel-eye-0.5.2.1 lib/eye/dsl/chain.rb
reel-eye-0.5.2 lib/eye/dsl/chain.rb
eye-0.5.2 lib/eye/dsl/chain.rb
reel-eye-0.5.1 lib/eye/dsl/chain.rb
eye-0.5.1 lib/eye/dsl/chain.rb