class Makitzo::Store::Skeleton
Stores record persistent host state data including applied migrations and arbitrary key-value pairs.
This is an interface definition for a store backend. It is not necessary to extend this class, but all methods must be implemented.
All operations must raise ::Makitzo::Store::OperationFailedError
on failure.
Public Instance Methods
applied_migrations_for_all_hosts()
click to toggle source
# File lib/makitzo/store/skeleton.rb, line 38 def applied_migrations_for_all_hosts raise end
applied_migrations_for_host(host)
click to toggle source
# File lib/makitzo/store/skeleton.rb, line 42 def applied_migrations_for_host(host) raise end
mark_migration_as_applied(host, migration)
click to toggle source
# File lib/makitzo/store/skeleton.rb, line 30 def mark_migration_as_applied(host, migration) raise end
open(&block)
click to toggle source
# File lib/makitzo/store/skeleton.rb, line 10 def open(&block) raise end
read(host, key)
click to toggle source
# File lib/makitzo/store/skeleton.rb, line 14 def read(host, key) raise end
read_all(host, *keys)
click to toggle source
# File lib/makitzo/store/skeleton.rb, line 22 def read_all(host, *keys) raise end
unmark_migration_as_applied(host, migration)
click to toggle source
# File lib/makitzo/store/skeleton.rb, line 34 def unmark_migration_as_applied(host, migration) raise end
write(host, key, value)
click to toggle source
# File lib/makitzo/store/skeleton.rb, line 18 def write(host, key, value) raise end
write_all(host, hash)
click to toggle source
# File lib/makitzo/store/skeleton.rb, line 26 def write_all(host, hash) raise end