cloud_former 0.2.6 → 0.3.0

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: a954af73b9eb135e400099b09e48a0af1994a141
4
- data.tar.gz: 58a79a50d48ae8b4872bfd51c7d64f6f6f8298bf
3
+ metadata.gz: 94e3a30a109549aadb2da53bb32be3deaf536791
4
+ data.tar.gz: 44089503392d944d4f5e60a57cb0a60c1b73ef6f
5
5
  SHA512:
6
- metadata.gz: 10dc9396f21056084c08eeb85e912d23c0f0e1994922eb89b7cb38f885c5b34e71955393b160a807b04a78c573ed74787035c59ed004f8317276139a184f9a2f
7
- data.tar.gz: 3aa93ea3723347fe4ff2b1e8819ea4f25084f872393a113e8aee5ce716085cf205fed91abd0f7f64b7bb20488a1b2356c16bfd227e330cb7e3780942652c6efa
6
+ metadata.gz: 29d3495e5b74a64d38e5e1e6199d4759091324656e4d22c1322ce26cac3908abf964fc9e382495941dc4805ab0d964e69ec56be2c432560625dd097c4bb60b8c
7
+ data.tar.gz: 09c66cff9c02f846190692a6da019937dc1df0c2a0b86adea1692bf4bb8c0ef8f3046dfc6a0d096e423b93157feacdbc13c82c0cefbbd5da4a500a28159943cb
@@ -123,6 +123,17 @@ module CloudFormer
123
123
  autoload :SubnetGroup, 'cloud_former/resources/elasti_cache/subnet_group'
124
124
  end
125
125
 
126
+ module ElasticBeanstalk
127
+ autoload :Application, 'cloud_former/resources/elastic_beanstalk/application'
128
+ autoload :ApplicationVersion, 'cloud_former/resources/elastic_beanstalk/application_version'
129
+ autoload :ConfigurationTemplate, 'cloud_former/resources/elastic_beanstalk/configuration_template'
130
+ autoload :Environment, 'cloud_former/resources/elastic_beanstalk/environment'
131
+ autoload :EnvironmentTier, 'cloud_former/resource_properties/elastic_beanstalk/environment_tier'
132
+ autoload :OptionSetting, 'cloud_former/resource_properties/elastic_beanstalk/option_setting'
133
+ autoload :SourceBundle, 'cloud_former/resource_properties/elastic_beanstalk/source_bundle'
134
+ autoload :SourceConfiguration, 'cloud_former/resource_properties/elastic_beanstalk/source_configuration'
135
+ end
136
+
126
137
  module ElasticLoadBalancing
127
138
  autoload :AccessLoggingPolicy, 'cloud_former/resource_properties/elastic_load_balancing/access_logging_policy'
128
139
  autoload :AppCookieStickinessPolicy, 'cloud_former/resource_properties/elastic_load_balancing/app_cookie_stickiness_policy'
@@ -152,6 +163,10 @@ module CloudFormer
152
163
  autoload :UserToGroupAddition, 'cloud_former/resources/iam/user_to_group_addition'
153
164
  end
154
165
 
166
+ module Kinesis
167
+ autoload :Stream, 'cloud_former/resources/kinesis/stream'
168
+ end
169
+
155
170
  module RDS
156
171
  autoload :DBInstance, 'cloud_former/resources/rds/db_instance'
157
172
  autoload :DBParameterGroup, 'cloud_former/resources/rds/db_parameter_group'
@@ -51,8 +51,8 @@ module CloudFormer
51
51
  end
52
52
 
53
53
  def make_aws_accessor(name, options)
54
- define_method(name) do |val=nil|
55
- if val
54
+ define_method(name) do |val='!!!****noarggiven****!!!'|
55
+ if val != '!!!****noarggiven****!!!'
56
56
  if options[:list] && !val.respond_to?(:each)
57
57
  unless val.respond_to?(:acts_as_list?) && val.acts_as_list?
58
58
  raise ArgumentError.new(
@@ -22,7 +22,7 @@ module CloudFormer
22
22
 
23
23
  self.class.aws_properties.try(:each) do |property|
24
24
  val = property.as_json_for(self)
25
- if val
25
+ if !val.nil?
26
26
  use_name = property.options[:name]
27
27
  use_name ||= ActiveSupport::Inflector.camelize(property.name)
28
28
  properties[use_name] = val
@@ -0,0 +1,10 @@
1
+ # http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk-environment-tier.html
2
+ module CloudFormer
3
+ module ElasticBeanstalk
4
+ class EnvironmentTier < ResourceProperty
5
+ aws_attribute :name, type: String
6
+ aws_attribute :type, type: String
7
+ aws_attribute :version, type: String
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ # http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk-option-settings.html
2
+ module CloudFormer
3
+ module ElasticBeanstalk
4
+ class OptionSetting < ResourceProperty
5
+ aws_attribute :namespace, type: String
6
+ aws_attribute :option_name, type: String
7
+ aws_attribute :value, type: String
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,9 @@
1
+ # http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk-sourcebundle.html
2
+ module CloudFormer
3
+ module ElasticBeanstalk
4
+ class SourceBundle < ResourceProperty
5
+ aws_attribute :s3_buckey, type: String
6
+ aws_attribute :s3_key, type: String
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ # http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk-configurationtemplate-sourceconfiguration.html
2
+ module CloudFormer
3
+ module ElasticBeanstalk
4
+ class SourceConfiguration < ResourceProperty
5
+ aws_attribute :application_name, type: String
6
+ aws_attribute :template_name, type: String
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ # http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk.html
2
+ module CloudFormer
3
+ module ElasticBeanstalk
4
+ class Application < Resource
5
+ aws_property :application_name, type: String
6
+ aws_property :description, type: String
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,10 @@
1
+ # http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk-version.html
2
+ module CloudFormer
3
+ module ElasticBeanstalk
4
+ class ApplicationVersion < Resource
5
+ aws_property :application_name, type: String
6
+ aws_property :description, type: String
7
+ aws_property :source_bundle, embed: true, type: SourceBundle
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,13 @@
1
+ # http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk-version.html
2
+ module CloudFormer
3
+ module ElasticBeanstalk
4
+ class ConfigurationTemplate < Resource
5
+ aws_property :application_name, type: String
6
+ aws_property :description, type: String
7
+ aws_property :environment_id, type: String
8
+ aws_property :option_settings, list: true, embed: true, type: OptionSetting
9
+ aws_property :solution_stack_name, type: String
10
+ aws_property :source_configuration, embed: true, type: SourceConfiguration
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,15 @@
1
+ # http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk-environment.html
2
+ module CloudFormer
3
+ module ElasticBeanstalk
4
+ class Environment < Resource
5
+ aws_property :application_name, type: String
6
+ aws_property :cname_prefix, name: 'CNAMEPredix', type: String
7
+ aws_property :description, type: String
8
+ aws_property :option_settings, list: true, embed: true, type: OptionSetting
9
+ aws_property :solution_stack_name, type: String
10
+ aws_property :template_name, type: String
11
+ aws_property :tier, embed: true, type: EnvironmentTier
12
+ aws_property :version_label, type: String
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,8 @@
1
+ # http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesis-stream.html
2
+ module CloudFormer
3
+ module Kinesis
4
+ class Stream < Resource
5
+ aws_property :shard_count, type: Integer
6
+ end
7
+ end
8
+ end
@@ -1,3 +1,3 @@
1
1
  module CloudFormer
2
- VERSION = '0.2.6'
2
+ VERSION = '0.3.0'
3
3
  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.2.6
4
+ version: 0.3.0
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-09-08 00:00:00.000000000 Z
11
+ date: 2014-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -145,6 +145,10 @@ files:
145
145
  - lib/cloud_former/resource_properties/ec2/private_ip_address_specification.rb
146
146
  - lib/cloud_former/resource_properties/ec2/security_group_rule.rb
147
147
  - lib/cloud_former/resource_properties/ec2/tag.rb
148
+ - lib/cloud_former/resource_properties/elastic_beanstalk/environment_tier.rb
149
+ - lib/cloud_former/resource_properties/elastic_beanstalk/option_setting.rb
150
+ - lib/cloud_former/resource_properties/elastic_beanstalk/source_bundle.rb
151
+ - lib/cloud_former/resource_properties/elastic_beanstalk/source_configuration.rb
148
152
  - lib/cloud_former/resource_properties/elastic_load_balancing/access_logging_policy.rb
149
153
  - lib/cloud_former/resource_properties/elastic_load_balancing/app_cookie_stickiness_policy.rb
150
154
  - lib/cloud_former/resource_properties/elastic_load_balancing/connection_draining_policy.rb
@@ -209,6 +213,10 @@ files:
209
213
  - lib/cloud_former/resources/elasti_cache/security_group.rb
210
214
  - lib/cloud_former/resources/elasti_cache/security_group_ingress.rb
211
215
  - lib/cloud_former/resources/elasti_cache/subnet_group.rb
216
+ - lib/cloud_former/resources/elastic_beanstalk/application.rb
217
+ - lib/cloud_former/resources/elastic_beanstalk/application_version.rb
218
+ - lib/cloud_former/resources/elastic_beanstalk/configuration_template.rb
219
+ - lib/cloud_former/resources/elastic_beanstalk/environment.rb
212
220
  - lib/cloud_former/resources/elastic_load_balancing/load_balancer.rb
213
221
  - lib/cloud_former/resources/iam/access_key.rb
214
222
  - lib/cloud_former/resources/iam/group.rb
@@ -217,6 +225,7 @@ files:
217
225
  - lib/cloud_former/resources/iam/role.rb
218
226
  - lib/cloud_former/resources/iam/user.rb
219
227
  - lib/cloud_former/resources/iam/user_to_group_addition.rb
228
+ - lib/cloud_former/resources/kinesis/stream.rb
220
229
  - lib/cloud_former/resources/rds/db_instance.rb
221
230
  - lib/cloud_former/resources/rds/db_parameter_group.rb
222
231
  - lib/cloud_former/resources/rds/db_security_group.rb