cloudformation-ruby-dsl 1.4.2 → 1.4.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
  SHA1:
3
- metadata.gz: 5160b62e070108409db1f685692e0158efece837
4
- data.tar.gz: 2b06be14903bd5f45f1e2fcb2be5a452ce24560a
3
+ metadata.gz: 1f32c98b854e3dc8fca0b487b32e2b90ce58fbad
4
+ data.tar.gz: 217cddaa39ebfd41aae4d2248371417155c1235f
5
5
  SHA512:
6
- metadata.gz: 50eb7c54962bfc80b276941da6c58859ecc57a64ad5149d2be357e2591009f90ce334e19c2cbf2673365c3b48ff1a70afdcc1bf947fa0a665f5b8ababb38edff
7
- data.tar.gz: 2da8a50dc1de0440c92505aae6a2bab993e0517568d5c5806fa89e392721b534f62a7e9161c0e0262c16fc9e67e7c3654d7d5bfbf99392e202dcccb8c373366d
6
+ metadata.gz: f605f4569e4a04bacd29263f3f28ae0fe893a75846a48b8f2ed05b796396ddb9f0add6ba7e1b30d906070fa174ea5faa74511b727e9d22a5b3abc3835c43cee7
7
+ data.tar.gz: 0a747e0ff628bbc5f7034d2ae120785fb7a999ff0cf11bd8b91100a38485ca83527ab81eb4b471e8eda333d9dba4bf3fd0fac7801835d203567f8355f7cbb646
data/README.md CHANGED
@@ -90,6 +90,7 @@ Invoke an intrinsic CloudFormation function.
90
90
  - `find_in_map(map, key, name)`
91
91
  - `get_att(resource, attribute)`
92
92
  - `get_azs(region)`
93
+ - `split(delim, string)`
93
94
  - `join(delim, *list)`
94
95
  - `select(index, list)`
95
96
  - `ref(name)`
@@ -188,7 +188,7 @@ def cfn(template)
188
188
  end
189
189
 
190
190
  case action
191
- when 'help'
191
+ when 'help'
192
192
  begin
193
193
  # Give some basic usage.
194
194
  help_string=%q(
@@ -560,7 +560,7 @@ template.rb create --stack-name my_stack --parameters "BucketName=bucket-s3-stat
560
560
  update_stack_opts = {
561
561
  stack_name: stack_name,
562
562
  template_body: template_string,
563
- parameters: template.parameters.map { |k,v| (v.use_previous_value && old_parameters[0].include?(k)) ? {parameter_key: k, use_previous_value: v.use_previous_value.to_s} : {parameter_key: k, parameter_value: v}}.to_a,
563
+ parameters: template.parameters.map { |k,v| (v.use_previous_value && old_parameters.include?([k,v])) ? {parameter_key: k, use_previous_value: v.use_previous_value.to_s} : {parameter_key: k, parameter_value: v}}.to_a,
564
564
  tags: cfn_tags.map { |k,v| {"key" => k.to_s, "value" => v.to_s} }.to_a,
565
565
  capabilities: ["CAPABILITY_NAMED_IAM"],
566
566
  }
@@ -310,6 +310,8 @@ def not_equal(one, two) fn_not(equal(one,two)) end
310
310
 
311
311
  def select(index, list) { :'Fn::Select' => [ index, list ] } end
312
312
 
313
+ def split(delimiter, source_str) { :'Fn::Split' => [delimiter, source_str] } end
314
+
313
315
  def ref(name) { :Ref => name } end
314
316
 
315
317
  def aws_account_id() ref("AWS::AccountId") end
@@ -15,7 +15,7 @@
15
15
  module Cfn
16
16
  module Ruby
17
17
  module Dsl
18
- VERSION = "1.4.2"
18
+ VERSION = "1.4.3"
19
19
  end
20
20
  end
21
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudformation-ruby-dsl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.2
4
+ version: 1.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shawn Smith
@@ -15,7 +15,7 @@ authors:
15
15
  autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
- date: 2016-11-03 00:00:00.000000000 Z
18
+ date: 2017-01-26 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: detabulator