Class: Specinfra::Command::Linux::Base::KvmGuest
- Inherits:
-
Base::KvmGuest
- Object
- Base
- Base::KvmGuest
- Specinfra::Command::Linux::Base::KvmGuest
- Defined in:
- lib/specinfra/command/linux/base/kvm_guest.rb
Class Method Summary collapse
Methods inherited from Base
Class Method Details
.check_exists(guest) ⇒ Object
3 4 5 |
# 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) ⇒ Object
11 12 13 |
# 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) ⇒ Object
7 8 9 |
# 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 |