flock-sandbox 0.0.2 → 0.0.3

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: 654f15e9cee9777f429672a7a04c5145ccb703aa
4
- data.tar.gz: d7f57b2733e68552a460402f455be7cbf0d8625f
3
+ metadata.gz: 3de9da61d626a83aaa24178f54488223ecb7d119
4
+ data.tar.gz: 7c31c7b0d67b953ee53072879b67fae9f2a2f8eb
5
5
  SHA512:
6
- metadata.gz: 5d792bc6badf6b8e1d9cebd0918e758855b71cce2e3ca3a26303fbabc1a14951176710cc7f5ae2c13ea97dcff23be9134357aa63b367db15e6f3c79ac6520f78
7
- data.tar.gz: 19be4f7d381cbab80c88533db8cbc8104a117fdba72329a6b10772c651e5c4fa6608b0e5d05a1ba6035ff442bdf5aefbe53fd9a0c304170a8251414ae63cf81c
6
+ metadata.gz: 999b1985a5c72b11af0a349239cf1d3455cc27542b1e57bfce463f7a2899882fe53b5f056a2fdf61dd4f96f3a366311c66c913ee0dda33ce2ea6f4131009c8ed
7
+ data.tar.gz: 0c788ba6b893f811b7a5d8ee739d4caf741effd239b2ffaeb693e5e0edb03ec897a3677a1a3a6b2f53826a0a7af9cc715069e0fe112a90e41e22a6944ce24f02
data/lib/flock/sandbox.rb CHANGED
@@ -93,6 +93,13 @@ module Flock
93
93
  'HostConfig' => {'Links' => c[:links]})
94
94
  containers << container
95
95
  container.start
96
+ res = container.wait
97
+ logs = container.logs(stdout: true, stderr: true)
98
+ puts logs
99
+ if res['StatusCode'] != 0
100
+ puts "Error in script #{c[:name]}: error code #{res['StatusCode']}"
101
+ exit res['StatusCode']
102
+ end
96
103
  end
97
104
  ensure
98
105
  containers.each do |c|
@@ -1,5 +1,5 @@
1
1
  module Flock
2
2
  module Sandbox
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flock-sandbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Rudenko
@@ -96,4 +96,3 @@ signing_key:
96
96
  specification_version: 4
97
97
  summary: Write a short summary. Required.
98
98
  test_files: []
99
- has_rdoc: