class MU::Config::Folder

Basket of Kittens config schema and parser logic. See modules/mu/providers/*/folder.rb

Public Class Methods

reference() click to toggle source

Chunk of schema to reference a folder/OU, here to be embedded into the schemas of other resources.

# File modules/mu/config/folder.rb, line 36
      def self.reference
#        {
#          "type" => "object",
#          "description" => "Deploy into or connect with resources in a specific account/project",
#          "minProperties" => 1,
#          "additionalProperties" => false,
#          "properties" => {
#            "id" => {
#              "type" => "string",
#              "description" => "Discover this folder/OU by looking by its cloud provider identifier "
#            },
#            "name" => {
#              "type" => "string",
#              "description" => "Discover this folder/OU by Mu-internal name; typically the shorthand 'name' field of an Folder object declared elsewhere in the deploy, or in another deploy that's being referenced with 'deploy_id'."
#            },
#            "cloud" => MU::Config.cloud_primitive,
#            "deploy_id" => {
#              "type" => "string",
#              "description" => "Search for this folder in an existing Mu deploy; specify a Mu deploy id (e.g. DEMO-DEV-2014111400-NG)."
#            }
#          }
#        }
        MU::Config::Ref.schema(type: "folders")
      end
schema() click to toggle source

Base configuration schema for a Folder @return [Hash]

# File modules/mu/config/folder.rb, line 22
def self.schema
  {
    "type" => "object",
    "additionalProperties" => false,
    "description" => "Set up a cloud provider folder/OU for containing other account-level resources",
    "properties" => {
      "name" => { "type" => "string" },
      "parent" => MU::Config::Folder.reference
    }
  }
end
validate(_folder, _configurator) click to toggle source

Generic pre-processing of {MU::Config::BasketofKittens::folder}, bare and unvalidated. @param _folder [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/folder.rb, line 65
def self.validate(_folder, _configurator)
  ok = true
  ok
end