Sha256: 1f7e3a13e7a3596e5e49583e00450572902335f63c9f9538ea6123f6930409d0
Contents?: true
Size: 324 Bytes
Versions: 1
Compression:
Stored size: 324 Bytes
Contents
class Chaos::InstabilityFactory REGISTRY = { cpu_usage: Chaos::Instability::CpuUsage.new, io_wait: Chaos::Instability::IOWait.new, memory_usage: Chaos::Instability::MemoryUsage.new, exception: Chaos::Instability::Exception.new } def build(instability) REGISTRY.fetch(instability.to_sym) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
chaos-rb-0.1.0 | lib/chaos/instability_factory.rb |