cloud_former 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cloud_former/resources/auto_scaling/auto_scaling_group.rb +0 -1
- data/lib/cloud_former/resources/auto_scaling/scaling_policy.rb +11 -0
- data/lib/cloud_former/resources/auto_scaling/scheduled_action.rb +14 -0
- data/lib/cloud_former/version.rb +1 -1
- data/lib/cloud_former.rb +2 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94abce18146a1ec6925ce84ec75ec794d4d15e97
|
4
|
+
data.tar.gz: a5226e624ccc53e65da2a0a0fc354f0babaf7a71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2087f3025a8bef501b07ea2fba98fd4582723d9eb5ee6cb2efac3da554491c207aa177de3b472425f6bc02b019fc0234d0c1fdce550b4ae81811b26281b1ffd4
|
7
|
+
data.tar.gz: 1021878df61d69a1c0caea17c94c3eb28e47a2518389e0af62293ab93eba44cfc77b723fce0900e369622a7fc8e8d06f4a58b3a782526d5882861c75e2ad609e
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-policy.html
|
2
|
+
module CloudFormer
|
3
|
+
module AutoScaling
|
4
|
+
class ScalingPolicy < Resource
|
5
|
+
aws_property :adjustment_type, type: String
|
6
|
+
aws_property :auto_scaling_group_name, type: String
|
7
|
+
aws_property :cooldown, type: String
|
8
|
+
aws_property :scaling_adjustment, type: String
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-policy.html
|
2
|
+
module CloudFormer
|
3
|
+
module AutoScaling
|
4
|
+
class ScalingPolicy < Resource
|
5
|
+
aws_property :auto_scaling_group_name, type: String
|
6
|
+
aws_property :desired_capacity, type: Integer
|
7
|
+
aws_property :end_time, type: Time
|
8
|
+
aws_property :max_size, type: Integer
|
9
|
+
aws_property :min_size, type: Integer
|
10
|
+
aws_property :recurrence, type: String
|
11
|
+
aws_property :start_time, type: Time
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
data/lib/cloud_former/version.rb
CHANGED
data/lib/cloud_former.rb
CHANGED
@@ -30,6 +30,8 @@ module CloudFormer
|
|
30
30
|
autoload :LaunchConfiguration, 'cloud_former/resources/auto_scaling/launch_configuration'
|
31
31
|
autoload :MetricsCollection, 'cloud_former/resource_properties/auto_scaling/metrics_collection'
|
32
32
|
autoload :NotificationConfiguration, 'cloud_former/resource_properties/auto_scaling/notification_configuration'
|
33
|
+
autoload :ScalingPolicy, 'cloud_former/resources/auto_scaling/scaling_policy'
|
34
|
+
autoload :ScheduledAction, 'cloud_former/resources/auto_scaling/scheduled_action'
|
33
35
|
autoload :Tag, 'cloud_former/resource_properties/auto_scaling/tag'
|
34
36
|
end
|
35
37
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloud_former
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aubrey Holland
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -170,6 +170,8 @@ files:
|
|
170
170
|
- lib/cloud_former/resource_properties/sns/subscription.rb
|
171
171
|
- lib/cloud_former/resources/auto_scaling/auto_scaling_group.rb
|
172
172
|
- lib/cloud_former/resources/auto_scaling/launch_configuration.rb
|
173
|
+
- lib/cloud_former/resources/auto_scaling/scaling_policy.rb
|
174
|
+
- lib/cloud_former/resources/auto_scaling/scheduled_action.rb
|
173
175
|
- lib/cloud_former/resources/cloud_formation/wait_condition.rb
|
174
176
|
- lib/cloud_former/resources/cloud_formation/wait_condition_handle.rb
|
175
177
|
- lib/cloud_former/resources/cloud_front/distribution.rb
|