Class: Kitchen::DataMunger::LegacyConfigNormalizer
- Inherits:
-
Object
- Object
- Kitchen::DataMunger::LegacyConfigNormalizer
- 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 =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
The legacy conversion methods to invoke, in order, when normalizing raw configuration data.
%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
-
#initialize(data_munger) ⇒ LegacyConfigNormalizer
constructor
A new instance of LegacyConfigNormalizer.
-
#normalize! ⇒ void
private
Destructively runs every conversion in STEPS against the data.
Constructor Details
#initialize(data_munger) ⇒ LegacyConfigNormalizer
Returns a new instance of LegacyConfigNormalizer.
669 670 671 |
# File 'lib/kitchen/data_munger.rb', line 669 def initialize(data_munger) @data_munger = data_munger end |
Instance Method Details
#normalize! ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Destructively runs every conversion in STEPS against the data.
677 678 679 |
# File 'lib/kitchen/data_munger.rb', line 677 def normalize! STEPS.each { |step| data_munger.send(step) } end |