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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d7bfe3335090edf2b0571df2b7086854dd4cea61
4
- data.tar.gz: de6238d6e7d496c0be9b4888bbd55c2200b98758
3
+ metadata.gz: e3fa490ab0c9733b0b982b6f216af4bad1f2c1ee
4
+ data.tar.gz: 792cdee18f73a99eac62287a922662f30aada61b
5
5
  SHA512:
6
- metadata.gz: 0c0e8e892f29fde74ff2a0a905297313889bd1b4ffb890e4d74a65913689b522717d9302fb248471339142ee9bd0a4a1e86a155ef925aa2057d9fe5ef326dc4f
7
- data.tar.gz: 8dadaa1540f5ad2cda57cf6f588f1db91237c50df5b95f891be0bd55af5e30b64ce02d04fcc73fe5fca2679c89e13725d142700ff37058ccf8458101e9e9b82f
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(RSpec.configuration.lxc)
38
+ @ct ||= ::LXC::Container.new(Specinfra.configuration.lxc)
32
39
  end
33
40
  end
34
41
  end
@@ -1,3 +1,3 @@
1
1
  module Specinfra
2
- VERSION = "2.0.0.beta27"
2
+ VERSION = "2.0.0.beta28"
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.0.0.beta27
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-09 00:00:00.000000000 Z
11
+ date: 2014-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-ssh