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.
73 74 75 |
# File 'lib/workflow_manager/server.rb', line 73 def initialize(db_file) @db = PStore.new(db_file) end |
Instance Method Details
#transaction ⇒ Object
76 77 78 79 80 |
# File 'lib/workflow_manager/server.rb', line 76 def transaction @db.transaction do yield(@db) end end |