minimal_pipeline 0.2.7 → 0.2.8
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/minimal_pipeline/packer.rb +5 -1
- 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: c50c8e73f71b5a8f18f16bbb68980e86e9ac734490f57cca629679e20082e895
|
4
|
+
data.tar.gz: c9252a89c8bde66b82168fc31a6b896b2db333ab546c1dea59797d20e514cad1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a27ff1d32096dfe04b33701e3605fbc31aa5294c94cdf681b8b1d8fa455a69a084ccfbe7fe8e8f23b6c6063f910003be72f3100ff159e6b7a4d368d0ccda76fc
|
7
|
+
data.tar.gz: 4054de5e9fb9ec171ae771dc8fed4185a55367152f3b4864d593bc55c7acdc9aa5aec8ac8a2a11ff799c54a30a8ba19c988db5eece9a463ab463f8c6a8afcd3f
|
@@ -18,12 +18,15 @@ class MinimalPipeline
|
|
18
18
|
# ```
|
19
19
|
class Packer
|
20
20
|
attr_accessor :config
|
21
|
+
attr_accessor :debug
|
21
22
|
|
22
23
|
# Instaniate a Packer object
|
23
24
|
#
|
24
25
|
# @param packer_config [String] Path to the JSON packer config file
|
25
|
-
|
26
|
+
# @param debug [Boolean] Debug mode enabled for packer build (-debug flag)
|
27
|
+
def initialize(packer_config, debug = false)
|
26
28
|
@config = packer_config
|
29
|
+
@debug = debug
|
27
30
|
end
|
28
31
|
|
29
32
|
# Parse the newly built AMI from a given packer command output
|
@@ -47,6 +50,7 @@ class MinimalPipeline
|
|
47
50
|
end
|
48
51
|
|
49
52
|
command = 'packer -machine-readable build '
|
53
|
+
command += '-debug ' if @debug
|
50
54
|
command += variable_string unless variable_string.empty?
|
51
55
|
command += @config
|
52
56
|
puts command if ENV['DEBUG']
|
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.8
|
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: 2019-01-
|
12
|
+
date: 2019-01-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: aws-sdk-cloudformation
|