Class: BoshDeploymentManifestConfigTransmogrifier

Inherits:
BaseTransmogrifier show all
Defined in:
lib/bosh_deployment_manifest_config_transmogrifier.rb

Overview

BoshDeploymentManifestConfigTransmogrifier extracts property values from a bosh manifest and updates the config accordingly.

Class Method Summary collapse

Methods inherited from BaseTransmogrifier

inject_value

Class Method Details

.transmogrify(base_config, instance_group, bosh_deployment_manifest) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/bosh_deployment_manifest_config_transmogrifier.rb', line 6

def self.transmogrify(base_config, instance_group, bosh_deployment_manifest)
  bosh_deployment_manifest.properties_for_instance_group(instance_group).each do |key, value|
    full_key = 'properties.' + key
    inject_value(base_config, full_key.split('.'), value, full_key)
  end
  base_config
end