Class: LVM::LogicalVolume

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/lvm/logical_volume.rb

Instance Method Summary collapse

Instance Method Details

#open?Boolean

Helpers

Returns:

  • (Boolean)


6
# File 'lib/lvm/logical_volume.rb', line 6

def open?; device_open; end

#snapshot?Boolean

Returns:

  • (Boolean)


8
# File 'lib/lvm/logical_volume.rb', line 8

def snapshot?; volume_type == :snapshot ? true : false; end