specinfra 2.0.0.beta28 → 2.0.0.beta29
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/docker.rb +6 -0
- data/lib/specinfra/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19b475b396b0e94a215d943a2f7edf0973772776
|
4
|
+
data.tar.gz: 5ba06b04d558edc33cfc7202dd1da4ab95c36cb1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fac9490794ce3527d376f619d3834edcef8918b3bc649c593662f30d072a8dee63bc67b70e8682c9b593181e98063d2cd2a329733653a542be7c21374464537d
|
7
|
+
data.tar.gz: 9d207df541d529d36f9aefc62047d46a1622db73075784f7dba471eb3a883e0bf68a978c8f2b1ce7a893f7c98099971a8c91676cd7d614f983b843451ba2628a
|
@@ -2,6 +2,12 @@ module Specinfra
|
|
2
2
|
module Backend
|
3
3
|
class Docker < Exec
|
4
4
|
def initialize
|
5
|
+
begin
|
6
|
+
require 'docker' unless defined?(::Docker)
|
7
|
+
rescue LoadError
|
8
|
+
fail "Docker client library is not available. Try installing `docker-api' gem."
|
9
|
+
end
|
10
|
+
|
5
11
|
@images = []
|
6
12
|
::Docker.url = Specinfra.configuration.docker_url
|
7
13
|
end
|
data/lib/specinfra/version.rb
CHANGED