Sha256: 384ea6f5da23fdcfb8747fcfb8e15acb0ab0eb270390f466645091c0d73aad4b

Contents?: true

Size: 425 Bytes

Versions: 2

Compression:

Stored size: 425 Bytes

Contents

require "chef/chef_fs/file_system/base_fs_object"

class Chef
  module ChefFS
    module FileSystem
      module Memory
        class MemoryFile < Chef::ChefFS::FileSystem::BaseFSObject
          def initialize(name, parent, value)
            super(name, parent)
            @value = value
          end

          def read
            return @value
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
chef-12.8.1 lib/chef/chef_fs/file_system/memory/memory_file.rb
chef-12.8.1-universal-mingw32 lib/chef/chef_fs/file_system/memory/memory_file.rb