Method: R10K::Deployment#environments

Defined in:
lib/r10k/deployment.rb

#environmentsArray<R10K::Environment::Base>

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

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.

Returns:



60
61
62
63
# File 'lib/r10k/deployment.rb', line 60

def environments
  load_environments if @_environments.nil?
  @_environments
end