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: 745aca41dc7d7525d0f202c78235d307659330ab
4
- data.tar.gz: b88933903a88f8f381bd6052f209fe11e9665466
3
+ metadata.gz: 0271f50ce47a71b3de35e1f071f66be98a9e558f
4
+ data.tar.gz: cf8b0dab92802f13d8575908b765aa8f6f32147e
5
5
  SHA512:
6
- metadata.gz: 79304ec01697e730d918c8553290d6b08a8de36ecab20751f12bbcd361749ca9da6d45d6360fbe064229886f6501e3b18ec91e2b351572cff6cc723af9505830
7
- data.tar.gz: e2cc9446d635cee98662e6f7269cbd4d760aa029e60d1259e810257fc9f7d79bbe81482011dfed596709e1f20eb9c4e818a9dea714e9406984c27f7bab972ecb
6
+ metadata.gz: ebbb12f52ba63ef4e532f9ca35adba922506036701dbf2c27a4da895504df81b9a84cee539534eacc6afe5d2f734602f8f83090d600456903ca5f329a6e9fef1
7
+ data.tar.gz: 872fbfc0a723ccf9682e88c4c51b00d3ab4d099b98d96f1e4639711c6d5195edcd311bb0420c47942ec2c0129a41577bc938092d4082ff48ad7487e15d8eeefa
@@ -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,2 @@
1
+ class Specinfra::Command::Base::KvmGuest < Specinfra::Command::Base
2
+ end
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Specinfra
2
- VERSION = "2.67.10"
2
+ VERSION = "2.68.0"
3
3
  end
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.67.10
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-14 00:00:00.000000000 Z
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