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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: df19a4ab7ed4ab2d29b945edbeb0aa0ae61ed5f7
4
- data.tar.gz: 9d2d040cb7fea045f65c18f722ff62446d2f18f7
3
+ metadata.gz: 94abce18146a1ec6925ce84ec75ec794d4d15e97
4
+ data.tar.gz: a5226e624ccc53e65da2a0a0fc354f0babaf7a71
5
5
  SHA512:
6
- metadata.gz: cacda46729b58247180298fcee6e76f11684ce7c1af263f1b37af00a27cee330e762e14052ceaeb01fb1a76417d0b6c66cd0607be4a5b5e274c5df5745879b14
7
- data.tar.gz: 46347539d3fc55551aa3aa325406973ec5a00d3b6096a8e0cbec704fe00658f91c32424d7e7b2d761c49b6b6a0ca4e72be56b787206b2b129a47e825c7a421c9
6
+ metadata.gz: 2087f3025a8bef501b07ea2fba98fd4582723d9eb5ee6cb2efac3da554491c207aa177de3b472425f6bc02b019fc0234d0c1fdce550b4ae81811b26281b1ffd4
7
+ data.tar.gz: 1021878df61d69a1c0caea17c94c3eb28e47a2518389e0af62293ab93eba44cfc77b723fce0900e369622a7fc8e8d06f4a58b3a782526d5882861c75e2ad609e
@@ -2,7 +2,6 @@
2
2
  module CloudFormer
3
3
  module AutoScaling
4
4
  class AutoScalingGroup < Resource
5
-
6
5
  aws_property :availability_zones, required: true, list: true, type: String
7
6
  aws_property :cooldown, type: String
8
7
  aws_property :desired_capacity, type: String
@@ -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
@@ -1,3 +1,3 @@
1
1
  module CloudFormer
2
- VERSION = '0.1.4'
2
+ VERSION = '0.1.5'
3
3
  end
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
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-15 00:00:00.000000000 Z
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