93: def initialize(hash = {})
94: @mounts = {}
95: @files = {}
96:
97: @local = hash[:Local]
98:
99: @noreadconfig = true if hash[:Config] == false
100:
101: @passed_configuration_path = hash[:Config]
102:
103: if hash.include?(:Mount)
104: @passedconfig = true
105: raise Puppet::DevError, "Invalid mount hash #{hash[:Mount].inspect}" unless hash[:Mount].is_a?(Hash)
106:
107: hash[:Mount].each { |dir, name|
108: self.mount(dir, name) if FileTest.exists?(dir)
109: }
110: self.mount(nil, MODULES)
111: self.mount(nil, PLUGINS)
112: else
113: @passedconfig = false
114: if configuration
115: readconfig(false)
116: else
117: create_default_mounts
118: end
119: end
120: end