minimal_pipeline 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/minimal_pipeline/packer.rb +11 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e73c4e0d77f9e65390f57f1a98809904242a5e499d169157393e4d4dd83bc4d6
|
4
|
+
data.tar.gz: 60b3157434d96b16a0cf34512517470fb99781547273ea98983c6efc4c16994b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46c1b528cb1f6aa3e95157ee27bd452121fb9df21c1bfef1da44f68854f225e27a9b8632cbccfb67ad2bbffc65b57228df9363d5f6f9dce470fbd1442aaf8c04
|
7
|
+
data.tar.gz: 7681cab6b27244c670a0aa9aa2969f0e19a2b1cc742c5809d8f11180da24201420dc4aa9b94d991b8b0fa5ca13866be98cade614a26df5686e5f5681f6998e70
|
@@ -51,8 +51,17 @@ class MinimalPipeline
|
|
51
51
|
command += @config
|
52
52
|
puts command if ENV['DEBUG']
|
53
53
|
|
54
|
-
output =
|
55
|
-
|
54
|
+
output = ''
|
55
|
+
Open3.popen2e(command) do |_stdin, stdouterr, wait_thr|
|
56
|
+
while (command_output = stdouterr.gets)
|
57
|
+
output += command_output
|
58
|
+
puts command_output
|
59
|
+
$stdout.flush
|
60
|
+
end
|
61
|
+
|
62
|
+
raise 'Packer failed!' unless wait_thr.value.success?
|
63
|
+
end
|
64
|
+
|
56
65
|
get_ami_id(output)
|
57
66
|
end
|
58
67
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minimal_pipeline
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mayowa Aladeojebi
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-12-
|
12
|
+
date: 2018-12-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: aws-sdk-cloudformation
|