class Snapshotar::Storage::StorageTemplate

Public Instance Methods

create(filename,serialized_tree) click to toggle source

creates a snapshot specified by the given filename with data provided

Params
filename

name of the snapshot to create

serialized_tree

json serialized data

# File lib/snapshotar/storage/storage_template.rb, line 37
def create(filename,serialized_tree)

end
delete(filename) click to toggle source

deletes a snapshot specified by the given filename.

Params
filename

name of the snapshot to delete

# File lib/snapshotar/storage/storage_template.rb, line 47
def delete(filename)

end
index() click to toggle source

lists available snapshots in this storage.

returns

array of filenames

# File lib/snapshotar/storage/storage_template.rb, line 14
def index

end
show(filename) click to toggle source

loads a snapshot specified by the given filename.

Params
filename

name of the snapshot to load

returns

still seralized json

# File lib/snapshotar/storage/storage_template.rb, line 26
def show(filename)

end