Module: Kumonos::Clusters
- Defined in:
- lib/kumonos/clusters.rb
Overview
Generate clusters configuration.
Defined Under Namespace
Classes: CircuitBreaker, Cluster
Class Method Summary collapse
Class Method Details
.generate(definition) ⇒ Object
5 6 7 8 9 |
# File 'lib/kumonos/clusters.rb', line 5 def generate(definition) { clusters: definition['dependencies'].map { |s| Cluster.build(s).to_h } } end |