Closed scoopex closed 6 years ago
So trocla supports loading stores, that are external to trocla. See Storage backends. What you need to do:
class MyStore < Trocla::Storage
#your stuff
end
store: MyStore
store_require: /etc/trocla/mystore.rb
done.
Thanks, i wrote a trivial dummy store for my purposes. I will test this in my environment.
https://github.com/scoopex/trocla/blob/dummy-store/lib/trocla/stores/dummy.rb
let me know if something doesn't work or if you have improvements regarding the documentation, I would welcome PRs! :-) Otherwise I would close this, as it's all done.
Trocla should provide a dummy store which accepts but ignores store operations and returns dummy values for any get operation for test automation.
This is useful if you:
It seems that you just have to implement a new store in lib/trocla/stores/.
Do you have any hints?