specinfra 2.0.0.beta27 → 2.0.0.beta28
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/specinfra/backend/lxc.rb +9 -2
- data/lib/specinfra/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3fa490ab0c9733b0b982b6f216af4bad1f2c1ee
|
4
|
+
data.tar.gz: 792cdee18f73a99eac62287a922662f30aada61b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ffe4ea43dc3b396f99497b34b1ce9038526b205d54918efdeacc74d92975dea598a1b3a4d403161bc0a309487e59ef6058dd030aad6f594cff5ff3ef78f5223b
|
7
|
+
data.tar.gz: bd383c9e44fcef5b04dd0642a19bdb4f5745e73b089aaead1a73ad2acb1a4bb67e0e253ff85aa24262e159bf985b94112fb927d89449bb1287ad94d8f89edad4
|
@@ -1,7 +1,14 @@
|
|
1
|
-
|
2
1
|
module Specinfra
|
3
2
|
module Backend
|
4
3
|
class Lxc < Exec
|
4
|
+
def initialize
|
5
|
+
begin
|
6
|
+
require 'lxc/extra' unless defined?(::LXC::Extra)
|
7
|
+
rescue LoadError
|
8
|
+
fail "LXC client library is not available. Try installing `lxc-extra' gem"
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
5
12
|
def run_command(cmd, opts={})
|
6
13
|
cmd = build_command(cmd)
|
7
14
|
cmd = add_pre_command(cmd)
|
@@ -28,7 +35,7 @@ module Specinfra
|
|
28
35
|
end
|
29
36
|
|
30
37
|
def ct
|
31
|
-
@ct ||= ::LXC::Container.new(
|
38
|
+
@ct ||= ::LXC::Container.new(Specinfra.configuration.lxc)
|
32
39
|
end
|
33
40
|
end
|
34
41
|
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.0.0.
|
4
|
+
version: 2.0.0.beta28
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gosuke Miyashita
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-08-
|
11
|
+
date: 2014-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-ssh
|