cfndsl 0.11.5 → 0.11.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODkxMWE3OWJjMmM4NjNhYzYxMzE3MmYyMTU3ZDQ4NDMwY2YzNTE1Yg==
4
+ NTViMjVkMjE4OTJiMDUxOGIyN2FlMTkyMjNiNTY0ZTM3MzYxMmUwMw==
5
5
  data.tar.gz: !binary |-
6
- OGVlYzBmODllYzZjYjZlYzFiZGNmYjZhYzI3Mzk5Y2E3OGVhMDdjZQ==
6
+ ZjE5NjJkZWVmOTI4NzUzMTFkMGIxZTlkNTUyNDBkNTE5MDAwM2IwMg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- Mjc4MjJlZjBmZDk4NjliODdhMDcyYTAxM2NmNjRhMjU5NjNhZmZlNTczM2Q0
10
- MDlhZDY5NDdhZjVkNGQzMTdlNWRjZmI2NDM5NmYzMjY5N2IzNmJjMWMzZjlm
11
- NzQ5YzgyYTU1YzkwM2M2YWNiNGNmMzc4NTM1NmMwN2ExNjcyYjE=
9
+ YTE1MGU5Y2RhYmFiNjFhN2U3MGUyYTNjMTZlZWIyOTVmNmU1ZWI5NjEyMmUz
10
+ ODBkY2EzMDE3MjQ5NGM5NWNmZjE3OTE4Nzc5NzM4MzVhNDBlNTljODFiZjli
11
+ ZmRhOGMwYTk1MThhM2NiYjdmZGFkNWJmYmIxNTViMDI3YjZjYWQ=
12
12
  data.tar.gz: !binary |-
13
- OTc3MDY5ZTBkMWJjYmUzZjA3M2MzMzEzNzkyYzMxMmQ1ZWE2MWZlNmI0M2Zk
14
- NzQ5YTE2NGI5N2I4NWIzMjc1MGVlOGE3MmY1MzJhY2JjNDNhMjUyMWJhMzZh
15
- ZTIwMWE0MzE4M2FmMGNhZmNmZDdmZTE2ZmRhZDc3OThjYzA1ZTA=
13
+ MjQ0ZWZhM2JhYzQ5NmQ1NmY5ZTZkZmIwNjlkYjgzNzVmODNlNjljMDIyOWVl
14
+ ZTFiMzI2OWQ3ZWJkY2IxYTBjMGIzNzZkNTgwNmM0ZDhhZmQ1MGE3ZTNkMDM5
15
+ M2U1MjU2YzUyYzU3MjJhZDliZDg5YWQ2ZmFjNzdlYmZiZmVmZmU=
data/.rubocop.yml CHANGED
@@ -7,6 +7,9 @@ Metrics/CyclomaticComplexity:
7
7
  Metrics/AbcSize:
8
8
  Max: 25
9
9
 
10
+ Metrics/BlockLength:
11
+ Enabled: false
12
+
10
13
  Metrics/MethodLength:
11
14
  Max: 25
12
15
 
@@ -696,6 +696,7 @@ Resources:
696
696
  KeyPolicy: JSON
697
697
  "AWS::Logs::LogGroup" :
698
698
  Properties:
699
+ LogGroupName: String
699
700
  RetentionInDays: Integer
700
701
  "AWS::Logs::MetricFilter" :
701
702
  Properties:
@@ -1028,6 +1029,8 @@ Resources:
1028
1029
  Properties:
1029
1030
  ContainerDefinitions: [ ECSContainerDefinition ]
1030
1031
  Volumes: [ ECSVolume ]
1032
+ TaskRoleArn: String
1033
+ Family: String
1031
1034
  "AWS::CodeDeploy::Application" :
1032
1035
  Properties:
1033
1036
  ApplicationName: String
@@ -1,3 +1,3 @@
1
1
  module CfnDsl
2
- VERSION = '0.11.5'.freeze
2
+ VERSION = '0.11.6'.freeze
3
3
  end
@@ -0,0 +1,23 @@
1
+ require 'spec_helper'
2
+
3
+ describe CfnDsl::CloudFormationTemplate do
4
+ subject(:template) { described_class.new }
5
+
6
+ describe '#ECS_TaskDefinition' do
7
+ it 'supports TaskRoleArn property' do
8
+ template.ECS_TaskDefinition(:Test) do
9
+ TaskRoleArn 'arn:aws:iam::123456789012:role/S3Access'
10
+ end
11
+
12
+ expect(template.to_json).to include('"TaskRoleArn":"arn:aws:iam::123456789012:role/S3Access"')
13
+ end
14
+
15
+ it 'supports Family property' do
16
+ template.ECS_TaskDefinition(:Test) do
17
+ Family 'Fam'
18
+ end
19
+
20
+ expect(template.to_json).to include('"Family":"Fam"')
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,23 @@
1
+ require 'spec_helper'
2
+
3
+ describe CfnDsl::CloudFormationTemplate do
4
+ subject(:template) { described_class.new }
5
+
6
+ describe '#Logs_LogGroup' do
7
+ it 'supports RetentionInDays property' do
8
+ template.Logs_LogGroup(:Test) do
9
+ RetentionInDays 7
10
+ end
11
+
12
+ expect(template.to_json).to include('"RetentionInDays":7')
13
+ end
14
+
15
+ it 'supports LogGroupName property' do
16
+ template.Logs_LogGroup(:Test) do
17
+ LogGroupName 'TestLogGroup'
18
+ end
19
+
20
+ expect(template.to_json).to include('"LogGroupName":"TestLogGroup')
21
+ end
22
+ end
23
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cfndsl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.5
4
+ version: 0.11.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Jack
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-10-05 00:00:00.000000000 Z
12
+ date: 2016-10-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -87,6 +87,8 @@ files:
87
87
  - sample/t1.yaml
88
88
  - sample/vpc_example.rb
89
89
  - sample/vpc_with_vpn_example.rb
90
+ - spec/aws/ecs_task_definition_spec.rb
91
+ - spec/aws/logs_log_group_spec.rb
90
92
  - spec/cfndsl_spec.rb
91
93
  - spec/cli_spec.rb
92
94
  - spec/cloud_formation_template_spec.rb
@@ -128,6 +130,8 @@ signing_key:
128
130
  specification_version: 4
129
131
  summary: AWS Cloudformation DSL
130
132
  test_files:
133
+ - spec/aws/ecs_task_definition_spec.rb
134
+ - spec/aws/logs_log_group_spec.rb
131
135
  - spec/cfndsl_spec.rb
132
136
  - spec/cli_spec.rb
133
137
  - spec/cloud_formation_template_spec.rb