cfncli 0.6.0 → 0.7.0

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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZDI4ZmQ1ZGEwNjM2Y2UzOWFkOWY3YTUwMmZiYzY2MjY2MjU5MTIyOA==
4
+ MDE5OTQwN2E1M2FiODUwZmQyOWZlNGM3Y2E5YWI5NmYwMTVjMGVlNQ==
5
5
  data.tar.gz: !binary |-
6
- MjdiNjhmOTA5N2Y4NGY1MzZhOTdjODVmNWM4MWEwZTUwYzJmYmNjMg==
6
+ MjYwOWI3MGZkNDhmYzMyNzE2YmE0ODQ3OWZmMjliMTg2YzkxODg4MQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZWUyZjUzNDFmNjRiMDE5NzIwMjA0MWIwMWJkY2ZhZmIxMzkzYTdkNDNmYWU4
10
- YjQ1ODI4MTljYjA4ZGJiNTgzY2RlMGFkZThiNzcxZDlhNDg3MTJjYzliYjAx
11
- NzUzMzM4NDczOWNjM2RkOTkzM2FlM2NhOGQ1NWI1MjI4MjBiNmM=
9
+ ODVmNzI1MTg4ODMyN2E5Y2EwN2YyNTcxZjcyMTMzNWY4ODFmYmYxYTMwMzg1
10
+ OTljYTU5ZjQ2ZGRkZWEzOTUxN2IxYTU0YjJiMTczMzM2MTMxMWVmZGZhMGMx
11
+ ODZlOTcwNzlhMDM0ZmI1NTYxNjU0NmYyYTdjZmU5M2E3M2M3ZGQ=
12
12
  data.tar.gz: !binary |-
13
- YjBjM2I4OGMzMzMyMWJkYmZmMzA0ZDY5Y2MwNWY2YzRjYzNkYzQzYzcyMWUx
14
- YmY3NTA3MDdkZGFkYmUxMWU4NmI0MjRlMzdhY2I1ZmIxZDZmYjI5YTkxMzI1
15
- NTI2MDFkYjY1NGJmMDdkNDE4MWMxZjkwNzk5ZWNjMjU4ZTk3NDk=
13
+ OGI3OTVhZWJmNDI5NTUzY2YyNDA3Y2MwMmYzN2ZiMDI0ZTE0MzEzOTc1ZGRm
14
+ M2UyMzgzYmZiMjU0NjhiZDNjMzJjOWRlODU0YTBiZmUwZDM1Y2U1YTJmNTM5
15
+ OGVkZWZmNjE2YTcxZmM2ZmQyYWZjMDZhM2M0ZDhlMDFjY2E5NWE=
@@ -52,6 +52,11 @@ module CfnCli
52
52
  desc: 'S3 URL to the Cloudformation template.' \
53
53
  ' This is exclusive with the template_body option'
54
54
 
55
+ method_option 'use_previous_template',
56
+ type: :boolean,
57
+ desc: 'Reuse the existing template that is associated with ' \
58
+ 'the stack that you are updating.'
59
+
55
60
  method_option 'parameters',
56
61
  type: :hash,
57
62
  desc: 'Stack parameters. Pass each parameter in the form --parameters key1:value1 key2:value2 or use the @filename syntax to provide a JSON file'
@@ -95,6 +100,7 @@ module CfnCli
95
100
 
96
101
  method_option 'tags',
97
102
  type: :hash,
103
+ lazy_default: {},
98
104
  desc: 'Key-value pairs to associate with this stack'
99
105
 
100
106
  # Application options
@@ -267,6 +273,7 @@ module CfnCli
267
273
  $stdout.sync = sync_stdout
268
274
 
269
275
  opts['template_body'] = file_or_content(opts['template_body']) if opts['template_body']
276
+ opts['tags'] = process_stack_tags(opts['tags']) if opts['tags']
270
277
  opts['stack_policy_body'] = file_or_content(opts['stack_policy_body']) if opts['stack_policy_body']
271
278
  opts['parameters'] = process_stack_parameters(opts['parameters']) if opts['parameters']
272
279
  opts['parameters'] = process_stack_parameters_file(consume_option(opts, 'parameters_file')) if opts['parameters_file']
@@ -327,6 +334,16 @@ module CfnCli
327
334
  end
328
335
  end
329
336
 
337
+ def process_stack_tags(tags)
338
+ return [] unless tags
339
+
340
+ real_tags = []
341
+ tags.each do |key, value|
342
+ real_tags << { key: key, value: value }
343
+ end
344
+ real_tags
345
+ end
346
+
330
347
  # Cloudformation utility object
331
348
  def cfn
332
349
  @cfn ||= CfnCli::CloudFormation.new
@@ -1,3 +1,3 @@
1
1
  module CfnCli
2
- VERSION = "0.6.0"
2
+ VERSION = "0.7.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cfncli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - lethalpaga
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-08-03 00:00:00.000000000 Z
11
+ date: 2016-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler