summaryrefslogtreecommitdiff
path: root/lib/chef/chef_fs/file_system/memory/memory_root.rb
blob: f4a7b5208b4a0840f418ed005d3b2a7fa290a823 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
require 'chef/chef_fs/file_system/memory/memory_dir'

class Chef
  module ChefFS
    module FileSystem
      module Memory
        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
end