minimal_pipeline 0.2.7 → 0.2.8

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: db372f8a03a3ae66d6a43e1b5904e18b0286bc36c443c56cc24eef0af7550f23
4
- data.tar.gz: 7d2cd7668669764b09725afaa292d003eaa5a178e28b28cedd5711c1c8ab3806
3
+ metadata.gz: c50c8e73f71b5a8f18f16bbb68980e86e9ac734490f57cca629679e20082e895
4
+ data.tar.gz: c9252a89c8bde66b82168fc31a6b896b2db333ab546c1dea59797d20e514cad1
5
5
  SHA512:
6
- metadata.gz: 5f0abf93977df48b5b4aaa56aa5d6c2165b521c199b1ae1ccc030abf982f7028fbce7035000e65fcd4cb10c8fe2fbf7d25e39505105af400129912b96242a6ff
7
- data.tar.gz: e1a2ede1586a4da9516611d8e8799b35aca26257fee249f487b7fbc0eedda16ff6c37e8048cdaba5e68f20c0cbe2603ecec27b60fdcefb659ce1c04cb5c8af8d
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
- def initialize(packer_config)
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.7
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-04 00:00:00.000000000 Z
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