cfndsl 0.1.11 → 0.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -176,14 +176,23 @@ module CfnDsl
176
176
  self.instance_eval &block if block_given?
177
177
  end
178
178
 
179
- def method_missing(meth,*args,&block)
180
- if(args) then
181
- arg = "(" + args.inspect[1..-2] + ")"
182
- else
183
- arg = ""
184
- end
185
- CfnDsl::Errors.error( "Undefined symbol: #{meth}#{arg}", 1 )
179
+ def method_missing(meth, *args, &block)
180
+ error = "Undefined symbol: #{meth}"
181
+ error = "#{error}(" + args.inspect[1..-2] + ")" unless args.empty?
182
+ error = "#{error}\n\nTry '#{titleize(meth)}' instead" if incorrect_capitalization?(meth)
183
+ CfnDsl::Errors.error(error, 1)
184
+ end
185
+
186
+ def incorrect_capitalization?(method)
187
+ method != titleize(method) && respond_to?(titleize(method))
186
188
  end
189
+
190
+ def titleize(method)
191
+ method.to_s.clone.tap do |m|
192
+ m[0] = m[0,1].upcase
193
+ end.to_sym
194
+ end
195
+
187
196
  end
188
197
 
189
198
 
@@ -506,6 +506,50 @@ Resources:
506
506
  EC2SecurityGroupId: String
507
507
  EC2SecurityGroupName: String
508
508
  EC2SecurityGroupOwnerId: String
509
+ "AWS::Redshift::Cluster":
510
+ Properties:
511
+ Allowversionupgrade: Boolean
512
+ AutomatedSnapshotRetentionPeriod: Integer
513
+ AvailabilityZone: String
514
+ ClusterParameterGroupName: String
515
+ ClusterSecurityGroups: [ String ]
516
+ ClusterSubnetGroupName: String
517
+ ClusterType: String
518
+ ClusterVersion: String
519
+ DBName: String
520
+ ElasticIp: String
521
+ Encrypted: Boolean
522
+ HsmClientCertificateIdentifier: String
523
+ HsmConfigurationIdentifier: String
524
+ MasterUsername: String
525
+ MasterUserPassword: String
526
+ NodeType: String
527
+ NumberOfNodes: Integer
528
+ OwnerAccount: String
529
+ Port: Integer
530
+ PreferredMaintenanceWindow: String
531
+ PubliclyAccessible: Boolean
532
+ SnapshotClusterIdentifier: String
533
+ SnapshotIdentifier: String
534
+ VpcSecurityGroupIds: [ String ]
535
+ "AWS::Redshift::ClusterParameterGroup":
536
+ Properties:
537
+ Description: String
538
+ ParameterGroupFamily: String
539
+ Parameters: [ RedshiftParameter ]
540
+ "AWS::Redshift::ClusterSecurityGroup":
541
+ Properties:
542
+ Description: String
543
+ "AWS::Redshift::ClusterSecurityGroupIngress":
544
+ Properties:
545
+ ClusterSecurityGroupName: String
546
+ CIDRIP: String
547
+ EC2SecurityGroupName: String
548
+ EC2SecurityGroupOwnerId: String
549
+ "AWS::Redshift::ClusterSubnetGroup":
550
+ Properties:
551
+ Description: String
552
+ SubnetIds: [ String ]
509
553
  "AWS::Route53::RecordSet" :
510
554
  Properties:
511
555
  HostedZoneId: String
@@ -561,7 +605,6 @@ Resources:
561
605
  Arn: String
562
606
  QueueName: String
563
607
 
564
-
565
608
  Types:
566
609
  String: String
567
610
  Boolean: Boolean
@@ -756,3 +799,6 @@ Types:
756
799
  MetricName: String
757
800
  MetricNamespace: String
758
801
  MetricValue: String
802
+ RedshiftParameter:
803
+ ParameterName: String
804
+ ParameterValue: String
metadata CHANGED
@@ -1,7 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cfndsl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Steven Jack
@@ -9,20 +10,22 @@ authors:
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2015-02-05 00:00:00.000000000 Z
13
+ date: 2015-03-30 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: bundler
16
17
  requirement: !ruby/object:Gem::Requirement
18
+ none: false
17
19
  requirements:
18
- - - '>='
20
+ - - ! '>='
19
21
  - !ruby/object:Gem::Version
20
22
  version: '0'
21
23
  type: :development
22
24
  prerelease: false
23
25
  version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
24
27
  requirements:
25
- - - '>='
28
+ - - ! '>='
26
29
  - !ruby/object:Gem::Version
27
30
  version: '0'
28
31
  description: DSL for creating AWS Cloudformation templates
@@ -34,49 +37,51 @@ executables:
34
37
  extensions: []
35
38
  extra_rdoc_files: []
36
39
  files:
37
- - bin/cfndsl
38
40
  - lib/cfndsl.rb
39
- - lib/cfndsl/CloudFormationTemplate.rb
40
- - lib/cfndsl/Conditions.rb
41
- - lib/cfndsl/CreationPolicy.rb
42
- - lib/cfndsl/Errors.rb
41
+ - lib/cfndsl/aws_types.yaml
42
+ - lib/cfndsl/os_types.yaml
43
43
  - lib/cfndsl/JSONable.rb
44
+ - lib/cfndsl/module.rb
45
+ - lib/cfndsl/RefCheck.rb
46
+ - lib/cfndsl/Types.rb
47
+ - lib/cfndsl/Properties.rb
48
+ - lib/cfndsl/Conditions.rb
44
49
  - lib/cfndsl/Mappings.rb
50
+ - lib/cfndsl/Resources.rb
45
51
  - lib/cfndsl/Metadata.rb
46
- - lib/cfndsl/Outputs.rb
47
52
  - lib/cfndsl/Parameters.rb
53
+ - lib/cfndsl/Outputs.rb
54
+ - lib/cfndsl/Errors.rb
48
55
  - lib/cfndsl/Plurals.rb
49
- - lib/cfndsl/Properties.rb
50
- - lib/cfndsl/RefCheck.rb
51
- - lib/cfndsl/Resources.rb
52
- - lib/cfndsl/Types.rb
53
- - lib/cfndsl/UpdatePolicy.rb
54
- - lib/cfndsl/aws_types.yaml
55
- - lib/cfndsl/module.rb
56
56
  - lib/cfndsl/names.rb
57
- - lib/cfndsl/os_types.yaml
57
+ - lib/cfndsl/CloudFormationTemplate.rb
58
+ - lib/cfndsl/CreationPolicy.rb
59
+ - lib/cfndsl/UpdatePolicy.rb
60
+ - bin/cfndsl
58
61
  homepage: https://github.com/stevenjack/cfndsl
59
62
  licenses:
60
63
  - MIT
61
- metadata: {}
62
64
  post_install_message:
63
65
  rdoc_options: []
64
66
  require_paths:
65
67
  - lib
66
68
  required_ruby_version: !ruby/object:Gem::Requirement
69
+ none: false
67
70
  requirements:
68
- - - '>='
71
+ - - ! '>='
69
72
  - !ruby/object:Gem::Version
70
73
  version: '0'
71
74
  required_rubygems_version: !ruby/object:Gem::Requirement
75
+ none: false
72
76
  requirements:
73
- - - '>='
77
+ - - ! '>='
74
78
  - !ruby/object:Gem::Version
75
79
  version: '0'
76
80
  requirements: []
77
81
  rubyforge_project:
78
- rubygems_version: 2.2.2
82
+ rubygems_version: 1.8.23
79
83
  signing_key:
80
- specification_version: 4
84
+ specification_version: 3
81
85
  summary: AWS Cloudformation DSL
82
86
  test_files: []
87
+ has_rdoc:
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: efc2e8c624a6a5a087f4d08e25bd93c10c2bdc19
4
- data.tar.gz: 655b4be50b82ddc085ebb343e54b49976771cf5f
5
- SHA512:
6
- metadata.gz: 1f7302bcdc7d37280d935aa5be2afe637873b39cce58285326906cac7802106ad6a96ac90f30e1a9f547fa374fa6c08e70be4c6735d9caf4c1d87cdd718c4e62
7
- data.tar.gz: f77cbaab4dc5288d373ac6abbb2db9cd16d26bdae597cedb8308afc67ead559810fb3433b2eca1ad972fa09db9b8be64e964693e8153ddc2500052db414137cc