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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9b6627e1ff33d2a5c6b9f302ad8268f3206f083b
4
- data.tar.gz: 135420d71d73f036a552fa4619fbf0d7ac02b435
3
+ metadata.gz: 4f4ea9ede1e2ecf2cf963a0b9afce2d88799bd2f
4
+ data.tar.gz: ffdf62caea38d81e2eb9dae45859cc787f922e8b
5
5
  SHA512:
6
- metadata.gz: 291b7624f5478dd96a4e29be0516202ae01f453c1af520db31331b020b4a26b130ac542aa4ed7971e8d503f4cc8365a56ef8297c474236ab5dcb93ee3351f0a9
7
- data.tar.gz: ddc9c5af3e64adfd1a5cb2ddb48bb07c07fa9534beb18fb4a837557054a717cb3de3b3fef893531eb072aa96df1e840e5efe4c2d8e4860762936ba14d8d66ef3
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
- fail "something went wrong with container startup!"
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.0
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-09-17 00:00:00.000000000 Z
11
+ date: 2018-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec