cloud_former 0.5.6 → 0.5.7

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: acde6ff80916a11c76142e434dcf323965e3ba12
4
- data.tar.gz: 391143b6b4990261b607d2b3b7f25aa3706f20e3
3
+ metadata.gz: eb292418f94aa86e40cb1ef4ebf50e2fa702df27
4
+ data.tar.gz: 96ef3c0bcca1bfae408cec7e5223985f801a192e
5
5
  SHA512:
6
- metadata.gz: 9c173f5eb004c8b253c699b9ea191140669f96d5b4839a9327d70c2742916de237a8d0cafe1894cbaf268cae98152f329e00bee7405d5c5a89ee130ac58beb8a
7
- data.tar.gz: ec846f654c0e9edb97dcd57530199ee9b267b80501d222668799979b62ddf279f53e2339c91f104dd982c48b2aa555695fbd69843f42f04d41da3c680fed0599
6
+ metadata.gz: 4ba9244d63cbb481149e755152f9298eeb56e9768cc1c0bbfd3efaa20d8d6416157c9972742f77616a0b76a33b93eccb147227921041d11867a00fa05c2e6667
7
+ data.tar.gz: 78ddd6b13fa3221f21c860bd9a2a7db8bde674230551bb03f6b9a08e751534ad84f4b6f4d1bdc02361d1982d2f59e10ef733c76a5cc004faa7ee442a622cef10
@@ -0,0 +1,9 @@
1
+ # http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-directoryservice-microsoftad-vpcsettings.html
2
+ module CloudFormer
3
+ module DirectoryService
4
+ class VpcSettings < ResourceProperty
5
+ aws_attribute :subnet_ids, type: String, list: true
6
+ aws_attribute :vpc_id, type: String
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,13 @@
1
+ # http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-directoryservice-simplead.html
2
+ module CloudFormer
3
+ module DirectoryService
4
+ class MicrosoftAD < Resource
5
+ aws_property :create_alias, type: Boolean
6
+ aws_property :enable_sso, type: Boolean
7
+ aws_property :name, type: String
8
+ aws_property :password, type: String
9
+ aws_property :short_name, type: String
10
+ aws_property :vpc_settings, type: VpcSettings, embed: true
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,15 @@
1
+ # http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-directoryservice-simplead.html
2
+ module CloudFormer
3
+ module DirectoryService
4
+ class SimpleAD < Resource
5
+ aws_property :create_alias, type: Boolean
6
+ aws_property :description, type: String
7
+ aws_property :enable_sso, type: Boolean
8
+ aws_property :name, type: String
9
+ aws_property :password, type: String
10
+ aws_property :short_name, type: String
11
+ aws_property :size, type: String
12
+ aws_property :vpc_settings, type: VpcSettings, embed: true
13
+ end
14
+ end
15
+ end
@@ -1,3 +1,3 @@
1
1
  module CloudFormer
2
- VERSION = '0.5.6'
2
+ VERSION = '0.5.7'
3
3
  end
data/lib/cloud_former.rb CHANGED
@@ -83,6 +83,12 @@ module CloudFormer
83
83
  autoload :MetricDimension, 'cloud_former/resource_properties/cloud_watch/metric_dimension'
84
84
  end
85
85
 
86
+ module DirectoryService
87
+ autoload :MicrosoftAD, 'cloud_former/resources/directory_service/microsoft_ad'
88
+ autoload :SimpleAD, 'cloud_former/resources/directory_service/simple_ad'
89
+ autoload :VpcSettings, 'cloud_former/resource_properties/directory_service/vpc_setting'
90
+ end
91
+
86
92
  module EC2
87
93
  autoload :BlockDeviceMapping, 'cloud_former/resource_properties/ec2/block_device_mapping'
88
94
  autoload :CustomerGateway, 'cloud_former/resources/ec2/customer_gateway'
@@ -1,7 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe CloudFormer::AutoScaling::UpdatePolicy do
4
-
5
4
  let(:param) { CloudFormer::StringParameter.new('woot') }
6
5
 
7
6
  let(:policy) do
@@ -12,6 +11,6 @@ describe CloudFormer::AutoScaling::UpdatePolicy do
12
11
  end
13
12
 
14
13
  it 'should make correct json' do
15
- expect(policy.dump_json).to eq('')
14
+ expect(policy.dump_json).to eq("AutoScalingRollingUpdate" => { "MaxBatchSize" => { "Ref" => "woot" } })
16
15
  end
17
16
  end
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.5.6
4
+ version: 0.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aubrey Holland
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-19 00:00:00.000000000 Z
11
+ date: 2015-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -137,6 +137,7 @@ files:
137
137
  - lib/cloud_former/resource_properties/cloud_front/s3_origin.rb
138
138
  - lib/cloud_former/resource_properties/cloud_front/viewer_certificate.rb
139
139
  - lib/cloud_former/resource_properties/cloud_watch/metric_dimension.rb
140
+ - lib/cloud_former/resource_properties/directory_service/vpc_settings.rb
140
141
  - lib/cloud_former/resource_properties/ec2/block_device_mapping.rb
141
142
  - lib/cloud_former/resource_properties/ec2/ebs_block_device.rb
142
143
  - lib/cloud_former/resource_properties/ec2/icmp.rb
@@ -196,6 +197,8 @@ files:
196
197
  - lib/cloud_former/resources/cloud_front/distribution.rb
197
198
  - lib/cloud_former/resources/cloud_trail/trail.rb
198
199
  - lib/cloud_former/resources/cloud_watch/alarm.rb
200
+ - lib/cloud_former/resources/directory_service/microsoft_ad.rb
201
+ - lib/cloud_former/resources/directory_service/simple_ad.rb
199
202
  - lib/cloud_former/resources/ec2/customer_gateway.rb
200
203
  - lib/cloud_former/resources/ec2/dhcp_options.rb
201
204
  - lib/cloud_former/resources/ec2/eip.rb