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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e1ce5d4facea0aeeb1d276d9373de44f69a6540196703813e70aa9c06d00333e
4
- data.tar.gz: b658fd2582bbc51665729c8be3ca106003f02947fee6a5c57172836db6e4fcd3
3
+ metadata.gz: e73c4e0d77f9e65390f57f1a98809904242a5e499d169157393e4d4dd83bc4d6
4
+ data.tar.gz: 60b3157434d96b16a0cf34512517470fb99781547273ea98983c6efc4c16994b
5
5
  SHA512:
6
- metadata.gz: d6067e097191cec9f803906976355d6c8891bab96e036d8b9114deec4b7fcae20aedc2cb2f7bd1d100de87a7e183f38e1cef6b0574ff7f0da7d746975a1bf0d8
7
- data.tar.gz: 7c9241954b0e43037e752c14c51e2b4fd1cf492624a2e7e4e015ce5e306a2cffc01c5d864a2f3a25aecd7da64dbe34252b39239bcc79d512908ae2c4e4221423
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 = `#{command}`
55
- puts output if ENV['DEBUG']
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.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-11 00:00:00.000000000 Z
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