Class: ChefZero::DataStore::MemoryStore

Inherits:
V2ToV1Adapter show all
Defined in:
lib/chef_zero/data_store/memory_store.rb

Instance Attribute Summary

Attributes inherited from V2ToV1Adapter

#real_store, #single_org

Instance Method Summary collapse

Methods inherited from V2ToV1Adapter

#clear, #create, #create_dir, #delete, #delete_dir, #exists?, #exists_dir?, #get, #list, #set

Methods inherited from InterfaceV1

#clear, #create, #create_dir, #delete, #delete_dir, #exists?, #exists_dir?, #get, #interface_version, #list, #set

Constructor Details

#initializeMemoryStore


26
27
28
29
30
# File 'lib/chef_zero/data_store/memory_store.rb', line 26

def initialize
  super
  @real_store = ChefZero::DataStore::DefaultFacade.new(ChefZero::DataStore::MemoryStoreV2.new, 'chef', true)
  clear
end