module Algo::Dsl::Cluster

Public Instance Methods

cluster(name, &block) click to toggle source
# File lib/algo/dsl/cluster.rb, line 38
def cluster name, &block
  ctx = Cluster::Context.new(name).tap do |ctx|
    ctx.instance_eval(&block)
  end
  @clusters << ctx.context
end