Method: Chef::ChefFS::ChefFSDataStore#initialize
- Defined in:
- lib/chef/chef_fs/chef_fs_data_store.rb
#initialize(chef_fs, chef_config = Chef::Config) ⇒ ChefFSDataStore
Create a new ChefFSDataStore
==== Arguments
[chef_fs] A +ChefFS::FileSystem+ object representing the repository root. Generally will be a +ChefFS::FileSystem::ChefRepositoryFileSystemRoot+ object, created from +ChefFS::Config.local_fs+.
157 158 159 160 161 |
# File 'lib/chef/chef_fs/chef_fs_data_store.rb', line 157 def initialize(chef_fs, chef_config = Chef::Config) @chef_fs = chef_fs @memory_store = ChefZero::DataStore::MemoryStore.new @repo_mode = chef_config[:repo_mode] end |