class Specinfra::Command::Linux::Base::KvmGuest
Public Class Methods
check_exists(guest)
click to toggle source
# File lib/specinfra/command/linux/base/kvm_guest.rb, line 3 def check_exists(guest) "virsh -c qemu:///system list --all --name | grep -w '^#{escape(guest)}$'" end
check_is_enabled(guest)
click to toggle source
# File lib/specinfra/command/linux/base/kvm_guest.rb, line 11 def check_is_enabled(guest) "virsh -c qemu:///system dominfo #{escape(guest)} | grep -E '^Autostart:\s+enable$'" end
check_is_running(guest)
click to toggle source
# File lib/specinfra/command/linux/base/kvm_guest.rb, line 7 def check_is_running(guest) "virsh -c qemu:///system list --name | grep -w '^#{escape(guest)}$'" end