Module: Kumonos::Routes

Defined in:
lib/kumonos/routes.rb

Overview

Generate routes configuration

Defined Under Namespace

Classes: RetryPolicy, Route, Vhost

Class Method Summary collapse

Class Method Details

.generate(definition) ⇒ Object



7
8
9
10
11
12
# File 'lib/kumonos/routes.rb', line 7

def generate(definition)
  {
    validate_clusters: false,
    virtual_hosts: definition['dependencies'].map { |s| Vhost.build(s).to_h }
  }
end