Module: Kitchen::Pulumi::Configurable

Included in:
Driver::Pulumi, Kitchen::Provisioner::Pulumi, Verifier::Pulumi
Defined in:
lib/kitchen/pulumi/configurable.rb

Overview

Module for plugins which are configurable via user-provided values in .kitchen.yaml

Instance Method Summary collapse

Instance Method Details

#finalize_config!(kitchen_instance) ⇒ Object

Alternative implementation of Kitchen::Configurable#finalize_config! which validates the configuration before attempting to expand paths. See https://github.com/test-kitchen/test-kitchen/issues/1229


16
17
18
19
20
21
22
23
24
# File 'lib/kitchen/pulumi/configurable.rb', line 16

def finalize_config!(kitchen_instance)
  kitchen_instance || raise(::Kitchen::ClientError,
                            "Instance must be provided to #{self}")
  @instance = KitchenInstance.new(kitchen_instance)
  validate_config!
  expand_paths!
  load_needed_dependencies!
  self
end