Method: Puppet::FileSystem::MemoryFile#initialize
- Defined in:
- lib/puppet/file_system/memory_file.rb
#initialize(path, properties) ⇒ MemoryFile
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.
Returns a new instance of MemoryFile.
26 27 28 29 30 31 32 |
# File 'lib/puppet/file_system/memory_file.rb', line 26 def initialize(path, properties) @path = path @properties = properties @children = (properties[:children] || []).collect do |child| child.duplicate_as(File.join(@path, child.path)) end end |