Module: HybridPlatformsConductor::HpcPlugins::PlatformHandler::ServerlessChef::MyDSLExtension

Defined in:
lib/hybrid_platforms_conductor/hpc_plugins/platform_handler/serverless_chef.rb

Overview

Add a Mixin to the DSL parsing the platforms configuration file. This can be used by any plugin to add plugin-specific configuration getters and setters, accessible later from NodesHandler instances. An optional initializer can also be given.

API
  • Those calls are optional

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#known_helpers_including_recipesObject (readonly)

The list of library helpers we know include some recipes. This is used when parsing some recipe code: if such a helper is encountered then we assume a dependency on a given recipe. Hash< Symbol, Array<String> >: List of recipes definitions per helper name.



32
33
34
# File 'lib/hybrid_platforms_conductor/hpc_plugins/platform_handler/serverless_chef.rb', line 32

def known_helpers_including_recipes
  @known_helpers_including_recipes
end

Instance Method Details

#helpers_including_recipes(included_recipes) ⇒ Object

Define helpers including recipes

Parameters
  • included_recipes (Hash< Symbol, Array<String> >): List of recipes definitions per helper name.



43
44
45
# File 'lib/hybrid_platforms_conductor/hpc_plugins/platform_handler/serverless_chef.rb', line 43

def helpers_including_recipes(included_recipes)
  @known_helpers_including_recipes.merge!(included_recipes)
end

#init_serverless_chefObject

Initialize the DSL



35
36
37
# File 'lib/hybrid_platforms_conductor/hpc_plugins/platform_handler/serverless_chef.rb', line 35

def init_serverless_chef
  @known_helpers_including_recipes = {}
end