puppet_docker_tools 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/spec/support/context/with_docker_container.rb +12 -2
- 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: 4f4ea9ede1e2ecf2cf963a0b9afce2d88799bd2f
|
4
|
+
data.tar.gz: ffdf62caea38d81e2eb9dae45859cc787f922e8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22cd4de3171b2aaeac272278fecf0b4004560c303a0562a8e6951e7c68b938d0340a0982fbe5396afafd3a8b2d0e46ba7b0f6861ae9e8e8b15b6290c1cd9d3c7
|
7
|
+
data.tar.gz: f2e93a7631cf65fe82194354e7e01c79830d6aa8cbbea0a1650fd9c96de258e36fc0c738d5f873adc7b4d65bac67ae26d035f544e596217b7d765aa1e049ba60
|
@@ -31,10 +31,20 @@ shared_context 'with a docker container' do
|
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|
34
|
+
def docker_run_options
|
35
|
+
return ''
|
36
|
+
end
|
37
|
+
|
34
38
|
before(:all) do
|
35
|
-
@container = %x(docker run --detach --rm -i #{@image}).chomp
|
39
|
+
@container = %x(docker run #{docker_run_options} --detach --rm -i #{@image}).chomp
|
40
|
+
|
41
|
+
unless $? == 0
|
42
|
+
fail "something went wrong with container startup!\n#{output}"
|
43
|
+
end
|
44
|
+
|
36
45
|
unless is_running?(@container)
|
37
|
-
|
46
|
+
logs = %x(docker container logs #{@container})
|
47
|
+
fail "something went wrong with container startup!\n#{logs}"
|
38
48
|
end
|
39
49
|
end
|
40
50
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: puppet_docker_tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppet, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|