Class: Kitchen::DataMunger

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

Overview

Add some additioanl methods to Kitchen::DataMunger to allow use of Kitchen::Binding

Instance Method Summary collapse

Instance Method Details

#binding_data_for(suite, platform) ⇒ Hash

Generate a new Hash of configuration data that can be used to construct a new Binding object.

Parameters:

  • suite (String)

    a suite name

  • platform (String)

    a platform name

Returns:

  • (Hash)

    a new configuration Hash that can be used to construct a new Binding



30
31
32
33
34
35
36
# File 'lib/kitchen/binding/core_ext/data_munger.rb', line 30

def binding_data_for(suite, platform)
  merged_data_for(:binding, suite, platform).tap do |bdata|
    set_kitchen_config_at!(bdata, :kitchen_root)
    set_kitchen_config_at!(bdata, :test_base_path)
    set_kitchen_config_at!(bdata, :log_level)
  end
end