Class: WorkflowManager::Server::PStoreDB
- Inherits:
-
Object
- Object
- WorkflowManager::Server::PStoreDB
- Defined in:
- lib/workflow_manager/server.rb
Instance Method Summary collapse
-
#initialize(db_file) ⇒ PStoreDB
constructor
A new instance of PStoreDB.
- #transaction ⇒ Object
Constructor Details
#initialize(db_file) ⇒ PStoreDB
Returns a new instance of PStoreDB.
96 97 98 |
# File 'lib/workflow_manager/server.rb', line 96 def initialize(db_file) @db = PStore.new(db_file) end |
Instance Method Details
#transaction ⇒ Object
99 100 101 102 103 |
# File 'lib/workflow_manager/server.rb', line 99 def transaction @db.transaction do yield(@db) end end |