specinfra 2.67.10 → 2.68.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0271f50ce47a71b3de35e1f071f66be98a9e558f
|
4
|
+
data.tar.gz: cf8b0dab92802f13d8575908b765aa8f6f32147e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ebbb12f52ba63ef4e532f9ca35adba922506036701dbf2c27a4da895504df81b9a84cee539534eacc6afe5d2f734602f8f83090d600456903ca5f329a6e9fef1
|
7
|
+
data.tar.gz: 872fbfc0a723ccf9682e88c4c51b00d3ab4d099b98d96f1e4639711c6d5195edcd311bb0420c47942ec2c0129a41577bc938092d4082ff48ad7487e15d8eeefa
|
data/lib/specinfra/command.rb
CHANGED
@@ -35,6 +35,7 @@ require 'specinfra/command/base/iptables'
|
|
35
35
|
require 'specinfra/command/base/ip6tables'
|
36
36
|
require 'specinfra/command/base/kernel_module'
|
37
37
|
require 'specinfra/command/base/lxc_container'
|
38
|
+
require 'specinfra/command/base/kvm_guest'
|
38
39
|
require 'specinfra/command/base/localhost'
|
39
40
|
require 'specinfra/command/base/mail_alias'
|
40
41
|
require 'specinfra/command/base/package'
|
@@ -62,6 +63,7 @@ require 'specinfra/command/linux/base/iptables'
|
|
62
63
|
require 'specinfra/command/linux/base/ip6tables'
|
63
64
|
require 'specinfra/command/linux/base/kernel_module'
|
64
65
|
require 'specinfra/command/linux/base/lxc_container'
|
66
|
+
require 'specinfra/command/linux/base/kvm_guest'
|
65
67
|
require 'specinfra/command/linux/base/package'
|
66
68
|
require 'specinfra/command/linux/base/ppa'
|
67
69
|
require 'specinfra/command/linux/base/selinux'
|
@@ -0,0 +1,15 @@
|
|
1
|
+
class Specinfra::Command::Linux::Base::KvmGuest < Specinfra::Command::Base::KvmGuest
|
2
|
+
class << self
|
3
|
+
def check_exists(guest)
|
4
|
+
"virsh -c qemu:///system list --all --name | grep -w '^#{escape(guest)}$'"
|
5
|
+
end
|
6
|
+
|
7
|
+
def check_is_running(guest)
|
8
|
+
"virsh -c qemu:///system list --name | grep -w '^#{escape(guest)}$'"
|
9
|
+
end
|
10
|
+
|
11
|
+
def check_is_enabled(guest)
|
12
|
+
"virsh -c qemu:///system dominfo #{escape(guest)} | grep -E '^Autostart:\s+enable$'"
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
data/lib/specinfra/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: specinfra
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.68.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gosuke Miyashita
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-scp
|
@@ -239,6 +239,7 @@ files:
|
|
239
239
|
- lib/specinfra/command/base/ipnat.rb
|
240
240
|
- lib/specinfra/command/base/iptables.rb
|
241
241
|
- lib/specinfra/command/base/kernel_module.rb
|
242
|
+
- lib/specinfra/command/base/kvm_guest.rb
|
242
243
|
- lib/specinfra/command/base/localhost.rb
|
243
244
|
- lib/specinfra/command/base/lxc_container.rb
|
244
245
|
- lib/specinfra/command/base/mail_alias.rb
|
@@ -330,6 +331,7 @@ files:
|
|
330
331
|
- lib/specinfra/command/linux/base/ip6tables.rb
|
331
332
|
- lib/specinfra/command/linux/base/iptables.rb
|
332
333
|
- lib/specinfra/command/linux/base/kernel_module.rb
|
334
|
+
- lib/specinfra/command/linux/base/kvm_guest.rb
|
333
335
|
- lib/specinfra/command/linux/base/lxc_container.rb
|
334
336
|
- lib/specinfra/command/linux/base/package.rb
|
335
337
|
- lib/specinfra/command/linux/base/ppa.rb
|