Sha256: e06c002d1686cbd3d23e19c70e233b48c1bff987ec9211fc79fe545bb6845bff

Contents?: true

Size: 333 Bytes

Versions: 10

Compression:

Stored size: 333 Bytes

Contents

class Factory
  def self.cluster(overrides = {})
    BigBrother::Cluster.new(
      overrides.fetch(:name, 'test'),
      {
        :fwmark         => 100,
        :scheduler      => 'wrr',
        :check_interval => 1,
        :nodes          => [Factory.node],
        :ramp_up_time   => 0
      }.merge(overrides)
    )
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
big_brother-0.6.8 spec/support/factories/cluster_factory.rb
big_brother-0.6.7 spec/support/factories/cluster_factory.rb
big_brother-0.6.6 spec/support/factories/cluster_factory.rb
big_brother-0.6.5 spec/support/factories/cluster_factory.rb
big_brother-0.6.4 spec/support/factories/cluster_factory.rb
big_brother-0.6.3 spec/support/factories/cluster_factory.rb
big_brother-0.6.2 spec/support/factories/cluster_factory.rb
big_brother-0.6.1 spec/support/factories/cluster_factory.rb
big_brother-0.6.0 spec/support/factories/cluster_factory.rb
big_brother-0.5.0 spec/support/factories/cluster_factory.rb