Method: R10K::Util::Basedir.from_deployment

Defined in:
lib/r10k/util/basedir.rb

.from_deployment(path, deployment) ⇒ R10K::Util::Basedir

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.

Create a new Basedir by selecting sources from a deployment that match the specified path.

Parameters:

Returns:



25
26
27
28
# File 'lib/r10k/util/basedir.rb', line 25

def self.from_deployment(path, deployment)
  sources = deployment.sources.select { |source| source.managed_directory == path }
  new(path, sources)
end