class MU::Config::Habitat
Basket of Kittens config schema and parser logic. See modules/mu/providers/*/project.rb
Public Class Methods
reference()
click to toggle source
Chunk of schema to reference an account/project, here to be embedded into the schemas of other resources.
# File modules/mu/config/habitat.rb, line 36 def self.reference MU::Config::Ref.schema(type: "habitats", omit_fields: ["region", "tag"]) end
schema()
click to toggle source
Base configuration schema for a Habitat
@return [Hash]
# File modules/mu/config/habitat.rb, line 22 def self.schema { "type" => "object", "additionalProperties" => false, "description" => "Generate a cloud habitat (AWS account, Google Cloud project, Azure Directory, etc)", "properties" => { "name" => { "type" => "string" }, "parent" => MU::Config::Folder.reference } } end
validate(_habitat, _configurator)
click to toggle source
Generic pre-processing of {MU::Config::BasketofKittens::habitat}, bare and unvalidated. @param _habitat [Hash]: The resource to process and validate @param _configurator [MU::Config]: The overall deployment configurator of which this resource is a member @return [Boolean]: True if validation succeeded, False otherwise
# File modules/mu/config/habitat.rb, line 44 def self.validate(_habitat, _configurator) ok = true ok end