humidifier 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/humidifier/props.rb +15 -0
- data/lib/humidifier/version.rb +1 -1
- data/specs/ApplicationAutoScaling-ScalableTarget.cf +11 -0
- data/specs/ApplicationAutoScaling-ScalingPolicy.cf +12 -0
- data/specs/AutoScaling-AutoScalingGroup.cf +20 -19
- data/specs/CertificateManager-Certificate.cf +9 -0
- data/specs/EFS-FileSystem.cf +2 -1
- data/specs/ElasticLoadBalancingV2-Listener.cf +11 -0
- data/specs/ElasticLoadBalancingV2-ListenerRule.cf +9 -0
- data/specs/ElasticLoadBalancingV2-LoadBalancer.cf +11 -0
- data/specs/ElasticLoadBalancingV2-TargetGroup.cf +20 -0
- data/specs/Logs-LogGroup.cf +1 -0
- data/specs/RDS-DBInstance.cf +2 -0
- metadata +9 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a07ab82ec7c365e45ec51d10ace4298d4a46bb92
|
4
|
+
data.tar.gz: 2b490e6f34bc98bba5636c844bb2a166a5a4b5e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26c04eb793aead4760c0016459dd8b27c694419c39560a77f25687c5d0af679de3358717a249cabe54af50fb78f56ecf5764e0e4aaa0329b7b44fd6c3e4bc78d
|
7
|
+
data.tar.gz: 8d3ebb5a2b3ebb6509388e563c17fd137103cc65deedfedd1d9d3aae87f7cd7fba628cccf97274259c322ab408b6fa89c6b5366116a3249a8fca661048fff39c
|
data/lib/humidifier/props.rb
CHANGED
@@ -97,6 +97,20 @@ module Humidifier
|
|
97
97
|
end
|
98
98
|
end
|
99
99
|
|
100
|
+
# An number property
|
101
|
+
class NumberProp < Base
|
102
|
+
# converts the value through #to_i unless it is whitelisted
|
103
|
+
def convert(value)
|
104
|
+
puts "WARNING: Property #{name} should be a number" unless valid?(value)
|
105
|
+
value.to_i
|
106
|
+
end
|
107
|
+
|
108
|
+
# true if it is whitelisted or a Integer
|
109
|
+
def valid?(value)
|
110
|
+
whitelisted_value?(value) || value.is_a?(Integer)
|
111
|
+
end
|
112
|
+
end
|
113
|
+
|
100
114
|
class << self
|
101
115
|
# builds the appropriate prop object from the given spec line
|
102
116
|
def from(spec_line)
|
@@ -106,6 +120,7 @@ module Humidifier
|
|
106
120
|
when 'Boolean' then BooleanProp.new(key)
|
107
121
|
when 'Integer' then IntegerProp.new(key)
|
108
122
|
when 'String' then StringProp.new(key)
|
123
|
+
when 'Number' then NumberProp.new(key)
|
109
124
|
when /\[.*?\]/ then ArrayProp.new(key)
|
110
125
|
else JSONProp.new(key)
|
111
126
|
end
|
data/lib/humidifier/version.rb
CHANGED
@@ -0,0 +1,12 @@
|
|
1
|
+
{
|
2
|
+
"Type" : "AWS::ApplicationAutoScaling::ScalingPolicy",
|
3
|
+
"Properties" : {
|
4
|
+
"PolicyName" : String,
|
5
|
+
"PolicyType" : String,
|
6
|
+
"ResourceId" : String,
|
7
|
+
"ScalableDimension" : String,
|
8
|
+
"ScalingTargetId" : String,
|
9
|
+
"ServiceNamespace" : String,
|
10
|
+
"StepScalingPolicyConfiguration" : StepScalingPolicyConfiguration
|
11
|
+
}
|
12
|
+
}
|
@@ -1,21 +1,22 @@
|
|
1
1
|
{
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
2
|
+
"Type" : "AWS::AutoScaling::AutoScalingGroup",
|
3
|
+
"Properties" : {
|
4
|
+
"AvailabilityZones" : [ String, ... ],
|
5
|
+
"Cooldown" : String,
|
6
|
+
"DesiredCapacity" : String,
|
7
|
+
"HealthCheckGracePeriod" : Integer,
|
8
|
+
"HealthCheckType" : String,
|
9
|
+
"InstanceId" : String,
|
10
|
+
"LaunchConfigurationName" : String,
|
11
|
+
"LoadBalancerNames" : [ String, ... ],
|
12
|
+
"MaxSize" : String,
|
13
|
+
"MetricsCollection" : [ MetricsCollection, ... ]
|
14
|
+
"MinSize" : String,
|
15
|
+
"NotificationConfigurations" : [ NotificationConfigurations, ... ],
|
16
|
+
"PlacementGroup" : String,
|
17
|
+
"Tags" : [ Auto Scaling Tag, ..., ],
|
18
|
+
"TargetGroupARNs" : [ String, ... ],
|
19
|
+
"TerminationPolicies" : [ String, ..., ],
|
20
|
+
"VPCZoneIdentifier" : [ String, ... ]
|
21
|
+
}
|
21
22
|
}
|
data/specs/EFS-FileSystem.cf
CHANGED
@@ -0,0 +1,11 @@
|
|
1
|
+
{
|
2
|
+
"Type" : "AWS::ElasticLoadBalancingV2::Listener",
|
3
|
+
"Properties" : {
|
4
|
+
"Certificates" : [ Certificates, ... ],
|
5
|
+
"DefaultActions" : [ DefaultActions, ... ],
|
6
|
+
"LoadBalancerArn" : String,
|
7
|
+
"Port" : Integer,
|
8
|
+
"Protocol" : String,
|
9
|
+
"SslPolicy" : String
|
10
|
+
}
|
11
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
{
|
2
|
+
"Type" : "AWS::ElasticLoadBalancingV2::LoadBalancer",
|
3
|
+
"Properties" : {
|
4
|
+
"LoadBalancerAttributes" : [ LoadBalancerAttributes, ... ],
|
5
|
+
"Name" : String,
|
6
|
+
"Scheme" : String,
|
7
|
+
"SecurityGroups" : [ String, ... ],
|
8
|
+
"Subnets" : [ String, ... ],
|
9
|
+
"Tags" : [ Resource Tag, ... ]
|
10
|
+
}
|
11
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
{
|
2
|
+
"Type" : "AWS::ElasticLoadBalancingV2::TargetGroup",
|
3
|
+
"Properties" : {
|
4
|
+
"HealthCheckIntervalSeconds" : Integer,
|
5
|
+
"HealthCheckPath" : String,
|
6
|
+
"HealthCheckPort" : String,
|
7
|
+
"HealthCheckProtocol" : String,
|
8
|
+
"HealthCheckTimeoutSeconds" : Integer,
|
9
|
+
"HealthyThresholdCount" : Integer,
|
10
|
+
"Matcher" : Matcher,
|
11
|
+
"Name" : String,
|
12
|
+
"Port" : Integer,
|
13
|
+
"Protocol" : String,
|
14
|
+
"Tags" : [ Resource Tag, ... ],
|
15
|
+
"TargetGroupAttributes" : [ TargetGroupAttributes, ... ],
|
16
|
+
"Targets" : [ TargetDescription, ... ],
|
17
|
+
"UnhealthyThresholdCount" : Integer,
|
18
|
+
"VpcId" : String
|
19
|
+
}
|
20
|
+
}
|
data/specs/Logs-LogGroup.cf
CHANGED
data/specs/RDS-DBInstance.cf
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: humidifier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Localytics
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -184,11 +184,14 @@ files:
|
|
184
184
|
- specs/ApiGateway-Resource.cf
|
185
185
|
- specs/ApiGateway-RestApi.cf
|
186
186
|
- specs/ApiGateway-Stage.cf
|
187
|
+
- specs/ApplicationAutoScaling-ScalableTarget.cf
|
188
|
+
- specs/ApplicationAutoScaling-ScalingPolicy.cf
|
187
189
|
- specs/AutoScaling-AutoScalingGroup.cf
|
188
190
|
- specs/AutoScaling-LaunchConfiguration.cf
|
189
191
|
- specs/AutoScaling-LifecycleHook.cf
|
190
192
|
- specs/AutoScaling-ScalingPolicy.cf
|
191
193
|
- specs/AutoScaling-ScheduledAction.cf
|
194
|
+
- specs/CertificateManager-Certificate.cf
|
192
195
|
- specs/CloudFormation-Authentication.cf
|
193
196
|
- specs/CloudFormation-CustomResource.cf
|
194
197
|
- specs/CloudFormation-Interface.cf
|
@@ -264,6 +267,10 @@ files:
|
|
264
267
|
- specs/ElasticBeanstalk-ConfigurationTemplate.cf
|
265
268
|
- specs/ElasticBeanstalk-Environment.cf
|
266
269
|
- specs/ElasticLoadBalancing-LoadBalancer.cf
|
270
|
+
- specs/ElasticLoadBalancingV2-Listener.cf
|
271
|
+
- specs/ElasticLoadBalancingV2-ListenerRule.cf
|
272
|
+
- specs/ElasticLoadBalancingV2-LoadBalancer.cf
|
273
|
+
- specs/ElasticLoadBalancingV2-TargetGroup.cf
|
267
274
|
- specs/Elasticsearch-Domain.cf
|
268
275
|
- specs/Events-Rule.cf
|
269
276
|
- specs/GameLift-Alias.cf
|