cfndsl 0.12.4 → 0.12.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +4 -4
- data/lib/cfndsl/aws/types.yaml +13 -0
- data/lib/cfndsl/version.rb +1 -1
- data/spec/cfndsl_spec.rb +2 -2
- data/spec/external_parameters_spec.rb +1 -1
- data/spec/names_spec.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0ce6b80021b802ef73be004a17b23edee006202
|
4
|
+
data.tar.gz: c70d0ffcca376c0117550abeb727b12f947b28c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a40a767c04119b65ce655f22a36faae0dc649d4e65234801ab0bf34720c02620f194e9e125911a454c8a20dfeaa926dd46ce21a6fb13dc78c955b145c7d17cb
|
7
|
+
data.tar.gz: ab440aeb6989617d44d6c2cf01c623e8aefc8c27014c69ae41f916b2742b883c325776b8fda2d05355dfe4f6fc4ecad9ace5b99ecaba22ad742fd7ec573ad9c1
|
data/Rakefile
CHANGED
@@ -14,22 +14,22 @@ task :cov do
|
|
14
14
|
end
|
15
15
|
|
16
16
|
YamlLint::RakeTask.new do |t|
|
17
|
-
t.paths = %w
|
17
|
+
t.paths = %w[
|
18
18
|
lib/cfndsl/aws/types.yaml
|
19
19
|
lib/cfndsl/os/types.yaml
|
20
20
|
sample/t1.yaml
|
21
21
|
.travis.yml
|
22
22
|
.rubocop.yml
|
23
|
-
|
23
|
+
]
|
24
24
|
end
|
25
25
|
|
26
|
-
task default: %i
|
26
|
+
task default: %i[spec rubocop yamllint]
|
27
27
|
|
28
28
|
task :bump, :type do |_, args|
|
29
29
|
type = args[:type].downcase
|
30
30
|
version_path = 'lib/cfndsl/version.rb'
|
31
31
|
|
32
|
-
types = %w
|
32
|
+
types = %w[major minor patch]
|
33
33
|
|
34
34
|
raise unless types.include?(type)
|
35
35
|
|
data/lib/cfndsl/aws/types.yaml
CHANGED
@@ -516,6 +516,16 @@ Resources:
|
|
516
516
|
Properties:
|
517
517
|
RepositoryName : String
|
518
518
|
RepositoryPolicyText : JSON
|
519
|
+
"AWS::EFS::FileSystem" :
|
520
|
+
Properties:
|
521
|
+
FileSystemTags : [ FileSystemTag ]
|
522
|
+
PerformanceMode : String
|
523
|
+
"AWS::EFS::MountTarget" :
|
524
|
+
Properties:
|
525
|
+
FileSystemId : String
|
526
|
+
IpAddress : String
|
527
|
+
SecurityGroups : [ String ]
|
528
|
+
SubnetId: String
|
519
529
|
"AWS::ElastiCache::CacheCluster" :
|
520
530
|
Properties:
|
521
531
|
AutoMinorVersionUpgrade : Boolean
|
@@ -1622,6 +1632,9 @@ Types:
|
|
1622
1632
|
FieldToMatch:
|
1623
1633
|
Data: String
|
1624
1634
|
Type: String
|
1635
|
+
FileSystemTag:
|
1636
|
+
Key: String
|
1637
|
+
Value: String
|
1625
1638
|
IPSetDescriptor:
|
1626
1639
|
Type: String
|
1627
1640
|
Value: String
|
data/lib/cfndsl/version.rb
CHANGED
data/spec/cfndsl_spec.rb
CHANGED
@@ -74,7 +74,7 @@ describe CfnDsl::CloudFormationTemplate do
|
|
74
74
|
SecurityGroup 'two'
|
75
75
|
groups = @Properties['SecurityGroups'].value
|
76
76
|
spec.expect(id).to spec.eq('aaaaa')
|
77
|
-
spec.expect(groups).to spec.eq(%w
|
77
|
+
spec.expect(groups).to spec.eq(%w[one two])
|
78
78
|
end
|
79
79
|
end
|
80
80
|
end
|
@@ -128,7 +128,7 @@ describe CfnDsl::CloudFormationTemplate do
|
|
128
128
|
end
|
129
129
|
|
130
130
|
it 'FnJoin' do
|
131
|
-
func = subject.FnJoin('A', %w
|
131
|
+
func = subject.FnJoin('A', %w[B C])
|
132
132
|
expect(func.to_json).to eq('{"Fn::Join":["A",["B","C"]]}')
|
133
133
|
end
|
134
134
|
|
@@ -92,7 +92,7 @@ describe CfnDsl::ExternalParameters do
|
|
92
92
|
end
|
93
93
|
end
|
94
94
|
|
95
|
-
%i
|
95
|
+
%i[fetch keys values each_pair].each do |meth|
|
96
96
|
context "##{meth}" do
|
97
97
|
it "delegates the method #{meth} to the underlying parameters" do
|
98
98
|
expect(subject.parameters).to receive(meth)
|
data/spec/names_spec.rb
CHANGED
@@ -3,13 +3,13 @@ require 'spec_helper'
|
|
3
3
|
describe CfnDsl do
|
4
4
|
context '.method_names' do
|
5
5
|
it 'returns an array of string method names when called without a block' do
|
6
|
-
expect(described_class.method_names('foo')).to eq(%w
|
6
|
+
expect(described_class.method_names('foo')).to eq(%w[foo Foo])
|
7
7
|
end
|
8
8
|
|
9
9
|
it 'yields symbol method names when called with a block' do
|
10
10
|
results = []
|
11
11
|
described_class.method_names('foo') { |name| results << name }
|
12
|
-
expect(results).to eq(%i
|
12
|
+
expect(results).to eq(%i[foo Foo])
|
13
13
|
end
|
14
14
|
end
|
15
15
|
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.12.
|
4
|
+
version: 0.12.5
|
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: 2017-
|
12
|
+
date: 2017-04-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|