Class: Makitzo::Store::Skeleton
- Inherits:
-
Object
- Object
- Makitzo::Store::Skeleton
- Defined in:
- lib/makitzo/store/skeleton.rb
Overview
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.
Instance Method Summary collapse
- #applied_migrations_for_all_hosts ⇒ Object
- #applied_migrations_for_host(host) ⇒ Object
- #mark_migration_as_applied(host, migration) ⇒ Object
- #open(&block) ⇒ Object
- #read(host, key) ⇒ Object
- #read_all(host, *keys) ⇒ Object
- #unmark_migration_as_applied(host, migration) ⇒ Object
- #write(host, key, value) ⇒ Object
- #write_all(host, hash) ⇒ Object
Instance Method Details
#applied_migrations_for_all_hosts ⇒ Object
38 39 40 |
# File 'lib/makitzo/store/skeleton.rb', line 38 def applied_migrations_for_all_hosts raise end |
#applied_migrations_for_host(host) ⇒ Object
42 43 44 |
# File 'lib/makitzo/store/skeleton.rb', line 42 def applied_migrations_for_host(host) raise end |
#mark_migration_as_applied(host, migration) ⇒ Object
30 31 32 |
# File 'lib/makitzo/store/skeleton.rb', line 30 def mark_migration_as_applied(host, migration) raise end |
#open(&block) ⇒ Object
10 11 12 |
# File 'lib/makitzo/store/skeleton.rb', line 10 def open(&block) raise end |
#read(host, key) ⇒ Object
14 15 16 |
# File 'lib/makitzo/store/skeleton.rb', line 14 def read(host, key) raise end |
#read_all(host, *keys) ⇒ Object
22 23 24 |
# File 'lib/makitzo/store/skeleton.rb', line 22 def read_all(host, *keys) raise end |
#unmark_migration_as_applied(host, migration) ⇒ Object
34 35 36 |
# File 'lib/makitzo/store/skeleton.rb', line 34 def unmark_migration_as_applied(host, migration) raise end |
#write(host, key, value) ⇒ Object
18 19 20 |
# File 'lib/makitzo/store/skeleton.rb', line 18 def write(host, key, value) raise end |
#write_all(host, hash) ⇒ Object
26 27 28 |
# File 'lib/makitzo/store/skeleton.rb', line 26 def write_all(host, hash) raise end |