Module: MintPress::Mixins::GenericProvider
- Includes:
- MintLogger
- Included in:
- Infrastructure::ActiveDirectoryDnsEntry, Infrastructure::BlockDevice, Infrastructure::Bootstrapper, Infrastructure::DnsEntry, Infrastructure::DnsIPAllocator, Infrastructure::Host, Infrastructure::IPAllocator, Infrastructure::NasShare, Infrastructure::NetworkInterface, Infrastructure::OldworldDns, Infrastructure::OvirtStorage, Infrastructure::PowerDnsEntry, Infrastructure::PowerDnsZone, Infrastructure::UsingActiveDirectoryDnsEntry, Infrastructure::UsingDnsIPAllocator, Infrastructure::UsingOldworldDns, Infrastructure::UsingOvirtStorage, Infrastructure::UsingPowerDnsEntry, Infrastructure::VMHost, Infrastructure::VaultEntry, InfrastructureAws::AwsPlatform, InfrastructureAws::EbsStorage, InfrastructureAws::KmsVaultEntry, InfrastructureAws::Route53DnsEntry, InfrastructureAws::UsingAwsPlatform, InfrastructureAws::UsingEbsStorage, InfrastructureAws::UsingExtraEbsStorage, InfrastructureAws::UsingKmsVaultEntry, InfrastructureAws::UsingRoute53DnsEntry, InfrastructureInfoblox::InfobloxDnsEntry, InfrastructureInfoblox::InfobloxPlatform, InfrastructureInfoblox::UsingInfobloxDnsEntry, InfrastructureInfoblox::UsingInfobloxPlatform, InfrastructureOci::OCIDnsEntry, InfrastructureOci::OCIDnsZone, InfrastructureOci::OCISharedStorage, InfrastructureOci::OCIStorage, InfrastructureOci::OciPlatform, InfrastructureOci::UsingExtraOCIStorage, InfrastructureOci::UsingOCIDnsEntry, InfrastructureOci::UsingOCIDnsZone, InfrastructureOci::UsingOCIStorage, InfrastructureOci::UsingOciPlatform, InfrastructureOci::UsingSharedOCIStorage, InfrastructureZfsAppliance::UsingExtraZfsFilesystem, InfrastructureZfsAppliance::UsingZfsFilesystem, InfrastructureZfsAppliance::UsingZfsPlatform, InfrastructureZfsAppliance::ZfsFilesystem, InfrastructureZfsAppliance::ZfsPlatform
- Defined in:
- src/mintpress-infrastructure/lib/mintpress-infrastructure/generic_provider.rb
Overview
This class will pick an appropriate instance of whatever for our currently loaded
infrastructure provider. If there is more than one, the user can provide the provider
property on their item, which will choose one explicitly. If there is more than one and
the user didn't choose, then we exception I guess!
Defined Under Namespace
Modules: ClassMethods
Constant Summary
Constants included from MintLogger
MintLogger::DEBUG, MintLogger::ERROR, MintLogger::FATAL, MintLogger::INFO, MintLogger::UNKNOWN, MintLogger::VERBOSE, MintLogger::WARN
Class Method Summary collapse
Instance Method Summary collapse
-
#register_provider(type, opts = {}) ⇒ Object
Register a provider to the framework.
-
#register_sub_provider(key, type, parent_type, opts = {}) ⇒ Object
Sub providers extend an existing provider - an example of this, is the specialised network interface types for hosts.
Methods included from MintLogger::Utils::Common
#boolean_val, #has_value?, #no_value?, #nvl, #path_as_symbol, #ruby_level_to_send
Class Method Details
.included(klass) ⇒ Object
Instance Method Details
#register_provider(type, opts = {}) ⇒ Object
Register a provider to the framework
#register_sub_provider(key, type, parent_type, opts = {}) ⇒ Object
Sub providers extend an existing provider - an example of this, is the specialised network interface
types for hosts
"key" is the key that it will be attached to on the parent - the point of the function is to merge to that
point in the tree on our parent