Class R10K::Deployment
In: lib/r10k/deployment.rb
lib/r10k/deployment/config.rb
lib/r10k/deployment/config/loader.rb
lib/r10k/deployment/source.rb
Parent: Object

A deployment models the entire state of the configuration that a Puppet master can use. It contains a set of sources that can produce environments and manages the contents of directories where environments are deployed.

@api private

Methods

Classes and Modules

Class R10K::Deployment::Config
Class R10K::Deployment::Environment
Class R10K::Deployment::Source

Attributes

config  [R]  @!attribute [r] config
  @return [R10K::Deployment::Config]

Public Class methods

Generate a deployment object based on a config

@param path [String] The path to the deployment config @return [R10K::Deployment] The deployment loaded with the given config

Public Instance methods

Lazily load all environments

This instantiates the @_environments instance variable, but should not be used directly as it could be legitimately unset if we‘re doing lazy loading.

@return [Array<R10K::Environment::Base>] All enviroments across

  all sources
fetch_sources()

Alias for preload!

@return [Array<String>] The paths used by all contained sources

@return [Hash<String, Array<R10K::Source::Base>]

Remove unmanaged content from all source paths

Lazily load all sources

This instantiates the @_sources instance variable, but should not be used directly as it could be legitimately unset if we‘re doing lazy loading.

@return [Array<R10K::Source::Base>] All repository sources

  specified in the config

[Validate]