class Kitchen::Pulumi::FilePathConfigAttributeDefiner

Class for defining config attributes that are consumed as file paths

Public Class Methods

new(attribute:, schema:) click to toggle source
# File lib/kitchen/pulumi/file_path_config_attribute_definer.rb, line 10
def initialize(attribute:, schema:)
  @attribute = attribute
  @definer = ConfigAttributeDefiner.new(
    attribute: attribute,
    schema: schema,
  )
end

Public Instance Methods

define(plugin_class: plugin) click to toggle source

Defines the config attribute and then expands the file path

# File lib/kitchen/pulumi/file_path_config_attribute_definer.rb, line 19
def define(plugin_class: plugin)
  @definer.define(plugin_class: plugin_class)
  plugin_class.expand_path_for(@attribute.to_sym)
end