lib/r10k/environment/with_modules.rb
# Returns an array of the full paths of filenames that should exist. Files
# inside managed_directories that are not listed in desired_contents will
# be purged.
# @note This implements a required method for the Purgeable mixin
# @return [Array<String>]
Returns an array of the full paths of filenames that should exist. Files
inside managed_directories that are not listed in desired_contents will
be purged.
Returns an array of the full paths of filenames that should exist . Files inside managed_directories that are not listed in desired_contents will be purged .
def desired_contents
    list = @managed_content.keys
    list += @managed_content.flat_map do |install_path, modnames|
      modnames.collect { |name| File.join(install_path, name) }
    end
  end
def desired_contents list = @managed_content . keys list += @managed_content . flat_map do | install_path , modnames | modnames . collect { | name | File . join ( install_path , name ) } end end
Returns an array of the full paths of filenames that should exist.
Returns an array of the full paths of filenames that should exist .
None
Array<String>
note
This implements a required method for the Purgeable mixin
This implements a required method for the Purgeable mixin