Class: Kitchen::DataMunger::LegacyConfigNormalizer

Inherits:
Object
  • Object
show all
Defined in:
lib/kitchen/data_munger.rb

Overview

Runs all legacy configuration conversions while keeping DataMunger as the public facade for destructive normalization.

Constant Summary collapse

STEPS =
%i{
  convert_legacy_driver_format!
  convert_legacy_chef_paths_format!
  convert_legacy_require_chef_omnibus_format!
  convert_legacy_busser_format!
  convert_legacy_driver_http_proxy_format!
  move_chef_data_to_provisioner!
  convert_legacy_pre_create_command!
}.freeze

Instance Method Summary collapse

Constructor Details

#initialize(data_munger) ⇒ LegacyConfigNormalizer

Returns a new instance of LegacyConfigNormalizer.



664
665
666
# File 'lib/kitchen/data_munger.rb', line 664

def initialize(data_munger)
  @data_munger = data_munger
end

Instance Method Details

#normalize!Object



668
669
670
# File 'lib/kitchen/data_munger.rb', line 668

def normalize!
  STEPS.each { |step| data_munger.send(step) }
end