specinfra 2.63.2 → 2.63.3
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: 6913dffbfc7736d1adc170584b35979d2f6c5876
|
4
|
+
data.tar.gz: 96545f9830d0df11809899e2037477d57f3a0ed9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a28eefb8b3722c7b67dab7d988054ef5a2f02bff5a75d267b0839300152b0770a59d7dfcb46aefcdabd92d66685ca297ae10e488eb2760a5ae721d5e339bf85f
|
7
|
+
data.tar.gz: bae3ff31128828ed4a393cfb5c74d2aee9dc3e18151fe69751f7ecf2a45d8de49e2ae2fdb86d675e8d6b56a4b8454424718ee52ba0be941484d6a5e80c5aa3be
|
@@ -1,11 +1,17 @@
|
|
1
1
|
class Specinfra::Command::Linux::Base::LxcContainer < Specinfra::Command::Base::LxcContainer
|
2
2
|
class << self
|
3
3
|
def check_exists(container)
|
4
|
-
|
4
|
+
[
|
5
|
+
"lxc-ls -1 | grep -w #{escape(container)}",
|
6
|
+
"virsh -c lxc:/// list --all --name | grep -w '^#{escape(container)}$'"
|
7
|
+
].join(' || ')
|
5
8
|
end
|
6
9
|
|
7
10
|
def check_is_running(container)
|
8
|
-
|
11
|
+
[
|
12
|
+
"lxc-info -n #{escape(container)} -s | grep -w RUNNING",
|
13
|
+
"virsh -c lxc:/// list --all --name --state-running | grep -w '^#{escape(container)}$'"
|
14
|
+
].join(' || ')
|
9
15
|
end
|
10
16
|
end
|
11
17
|
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.63.
|
4
|
+
version: 2.63.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gosuke Miyashita
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10-
|
11
|
+
date: 2016-10-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-scp
|