Class: Dcmgr::Drivers::BackingStore
- Inherits:
-
Object
- Object
- Dcmgr::Drivers::BackingStore
- Defined in:
- lib/dcmgr/drivers/backing_store.rb
Class Method Summary collapse
Instance Method Summary collapse
- #create_snapshot(ctx, snapshot_file) ⇒ Object
- #create_volume(ctx, snapshot_file = nil) ⇒ Object
- #delete_snapshot(ctx, snapshot_file) ⇒ Object
- #delete_volume(ctx) ⇒ Object
Class Method Details
.select_backing_store(backing_store) ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/dcmgr/drivers/backing_store.rb', line 19 def self.select_backing_store(backing_store) case backing_store when "raw" bs = Dcmgr::Drivers::Raw.new when "zfs" bs = Dcmgr::Drivers::Zfs.new else raise "Unknown backing_store type: #{backing_store}" end bs end |
Instance Method Details
#create_snapshot(ctx, snapshot_file) ⇒ Object
13 14 |
# File 'lib/dcmgr/drivers/backing_store.rb', line 13 def create_snapshot(ctx, snapshot_file) end |
#create_volume(ctx, snapshot_file = nil) ⇒ Object
7 8 |
# File 'lib/dcmgr/drivers/backing_store.rb', line 7 def create_volume(ctx, snapshot_file=nil) end |
#delete_snapshot(ctx, snapshot_file) ⇒ Object
16 17 |
# File 'lib/dcmgr/drivers/backing_store.rb', line 16 def delete_snapshot(ctx, snapshot_file) end |
#delete_volume(ctx) ⇒ Object
10 11 |
# File 'lib/dcmgr/drivers/backing_store.rb', line 10 def delete_volume(ctx) end |