Class: Libvirt::Domain

Inherits:
Object
  • Object
show all
Defined in:
lib/libvirt-ext.rb

Defined Under Namespace

Classes: BlockedReason, CloseReason, CrashedReason, NostateReason, PMSuspendedDiskReason, PMSuspendedReason, PausedReason, RunningReason, ShutdownReason, ShutoffReason, State

Instance Method Summary collapse

Instance Method Details

#inspectObject



222
223
224
225
# File 'lib/libvirt-ext.rb', line 222

def inspect
	state, reason = state_reason
	"#<#{self.class.name}: #{uuid} #{name} #{state.title}[#{reason.title}]>"
end

#state_reasonObject



218
219
220
# File 'lib/libvirt-ext.rb', line 218

def state_reason
	State[self.state]
end