class ChefZero::DataStore::InterfaceV1

Public Instance Methods

clear() click to toggle source
# File lib/chef_zero/data_store/interface_v1.rb, line 8
def clear
  raise "clear not implemented by class #{self.class}"
end
create(path, name, data, *options) click to toggle source

Create a file. options is a list of symbols, including:

:create_dir - create any parents needed
# File lib/chef_zero/data_store/interface_v1.rb, line 22
def create(path, name, data, *options)
  raise "create not implemented by class #{self.class}"
end
create_dir(path, name, *options) click to toggle source

Create a directory. options is a list of symbols, including:

:recursive - create any parents needed
# File lib/chef_zero/data_store/interface_v1.rb, line 15
def create_dir(path, name, *options)
  raise "create_dir not implemented by class #{self.class}"
end
delete(path) click to toggle source

Delete a file.

# File lib/chef_zero/data_store/interface_v1.rb, line 40
def delete(path)
  raise "delete not implemented by class #{self.class}"
end
delete_dir(path, *options) click to toggle source

Delete a directory. options is a list of symbols, including:

:recursive - delete even if empty
# File lib/chef_zero/data_store/interface_v1.rb, line 47
def delete_dir(path, *options)
  raise "delete_dir not implemented by class #{self.class}"
end
exists?(path) click to toggle source

Check a file's existence.

# File lib/chef_zero/data_store/interface_v1.rb, line 57
def exists?(path)
  raise "exists? not implemented by class #{self.class}"
end
exists_dir?(path) click to toggle source

Check a directory's existence.

# File lib/chef_zero/data_store/interface_v1.rb, line 62
def exists_dir?(path)
  raise "exists_dir? not implemented by class #{self.class}"
end
get(path, request = nil) click to toggle source

Get a file.

# File lib/chef_zero/data_store/interface_v1.rb, line 27
def get(path, request = nil)
  raise "get not implemented by class #{self.class}"
end
interface_version() click to toggle source
# File lib/chef_zero/data_store/interface_v1.rb, line 4
def interface_version
  1
end
list(path) click to toggle source

List a directory.

# File lib/chef_zero/data_store/interface_v1.rb, line 52
def list(path)
  raise "list not implemented by class #{self.class}"
end
set(path, data, *options) click to toggle source

Set a file's value. options is a list of symbols, including:

:create - create the file if it does not exist
:create_dir - create the directory if it does not exist
# File lib/chef_zero/data_store/interface_v1.rb, line 35
def set(path, data, *options)
  raise "set not implemented by class #{self.class}"
end