blob: 6cea3ae2a41fc5e0b4d7c83be94ea85dc29fc148 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
require "chef/chef_fs/file_system/memory_dir"
class Chef
module ChefFS
module FileSystem
class MemoryRoot < MemoryDir
def initialize(pretty_name, cannot_be_in_regex = nil)
super("", nil)
@pretty_name = pretty_name
@cannot_be_in_regex = cannot_be_in_regex
end
attr_reader :cannot_be_in_regex
def path_for_printing
@pretty_name
end
end
end
end
end
|