flock-sandbox 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/flock/sandbox.rb +7 -0
- data/lib/flock/sandbox/version.rb +1 -1
- metadata +1 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3de9da61d626a83aaa24178f54488223ecb7d119
|
|
4
|
+
data.tar.gz: 7c31c7b0d67b953ee53072879b67fae9f2a2f8eb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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|
|
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.
|
|
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:
|