cfndsl 0.1.2 → 0.1.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 38ce6af7d0c1ab9c73b1ccdccf25b4918d8c5255
4
- data.tar.gz: 20c00f1e99efee8c6cff428bceaa6fc8bb1f865d
3
+ metadata.gz: 9337f2ab86709b565b9a3423ceb8ca19ebec0562
4
+ data.tar.gz: 0962ccbfbc7044e5dcabf28fb58eff899cd4a607
5
5
  SHA512:
6
- metadata.gz: ffdd2279d299d641943a928ef9faee185574af9ef89afa10706c610cb4aebdeadcb43af4de963c0f6be9788af074c1d70777a72b55ae5feed55f7a3c6b717956
7
- data.tar.gz: 9cb8240e92b91c87f923de0e6900b2b25fab899d4ae8cfd7b581c4af58b6e0ee281ecfbc8bfdfca5e73da75a7edce9cceb112ddc9c7212df5dd88393823b2d2a
6
+ metadata.gz: 8bae73e45aee6f60909934340e07ae472eafe88a55f1fd521e8634f3f4c372f0a2f3743cf689a57dd668b53a2ac6a77b009a09e8d35d6ad80bd256801c0c41e1
7
+ data.tar.gz: f8dc2c3e7e2efca7b38ca0cb8c70f0406bfce4974add2aa5c37e8fc7141443a476d555f4721e53e5f5a6594d063534d2fef5ced45ffe32010783d6ea32fc9834
data/bin/cfndsl CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'cfndsl'
3
- load ARGV[0]
4
-
3
+ model = eval File.read ARGV[0]
4
+ puts model.to_json
data/lib/cfndsl.rb CHANGED
@@ -24,7 +24,7 @@ def CloudFormation(&block)
24
24
  elsif( CfnDsl::Errors.errors? ) then
25
25
  abort CfnDsl::Errors.errors.join("\n")
26
26
  else
27
- x.generateOutput
27
+ return x
28
28
  end
29
29
  end
30
30
 
@@ -12,10 +12,6 @@ module CfnDsl
12
12
  @AWSTemplateFormatVersion = "2010-09-09"
13
13
  end
14
14
 
15
- def generateOutput()
16
- puts self.to_json # uncomment for pretty printing # {:space => ' ', :indent => ' ', :object_nl => "\n", :array_nl => "\n" }
17
- end
18
-
19
15
  @@globalRefs = {
20
16
  "AWS::NotificationARNs" => 1,
21
17
  "AWS::Region" => 1,
@@ -58,7 +58,7 @@ Resources:
58
58
  LowerThreshold: String
59
59
  "AWS::CloudFormation::Stack" :
60
60
  Properties:
61
- TemplateUrl: String
61
+ TemplateURL: String
62
62
  TimeoutInMinutes: String
63
63
  Parameters: CloudFormationStackParameters
64
64
  "AWS::CloudFormation::WaitCondition" :
@@ -175,8 +175,8 @@ Resources:
175
175
  GroupId: String
176
176
  IpProtocol: String
177
177
  CidrIp: String
178
- SourceSecurtityGroupName: String
179
- SourceSecurtityGroupId: String
178
+ SourceSecurityGroupName: String
179
+ SourceSecurityGroupId: String
180
180
  SourceSecurityGroupOwnerId: String
181
181
  FromPort: Number
182
182
  ToPort: Number
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cfndsl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Jack
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-05-28 00:00:00.000000000 Z
12
+ date: 2014-07-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -48,25 +48,25 @@ executables:
48
48
  extensions: []
49
49
  extra_rdoc_files: []
50
50
  files:
51
+ - bin/cfndsl
51
52
  - lib/cfndsl.rb
52
- - lib/cfndsl/aws_types.yaml
53
- - lib/cfndsl/JSONable.rb
54
- - lib/cfndsl/module.rb
55
- - lib/cfndsl/RefCheck.rb
56
- - lib/cfndsl/Types.rb
57
- - lib/cfndsl/Properties.rb
53
+ - lib/cfndsl/CloudFormationTemplate.rb
58
54
  - lib/cfndsl/Conditions.rb
55
+ - lib/cfndsl/Errors.rb
56
+ - lib/cfndsl/JSONable.rb
59
57
  - lib/cfndsl/Mappings.rb
60
- - lib/cfndsl/Resources.rb
61
58
  - lib/cfndsl/Metadata.rb
62
- - lib/cfndsl/Parameters.rb
63
59
  - lib/cfndsl/Outputs.rb
64
- - lib/cfndsl/Errors.rb
60
+ - lib/cfndsl/Parameters.rb
65
61
  - lib/cfndsl/Plurals.rb
66
- - lib/cfndsl/names.rb
67
- - lib/cfndsl/CloudFormationTemplate.rb
62
+ - lib/cfndsl/Properties.rb
63
+ - lib/cfndsl/RefCheck.rb
64
+ - lib/cfndsl/Resources.rb
65
+ - lib/cfndsl/Types.rb
68
66
  - lib/cfndsl/UpdatePolicy.rb
69
- - bin/cfndsl
67
+ - lib/cfndsl/aws_types.yaml
68
+ - lib/cfndsl/module.rb
69
+ - lib/cfndsl/names.rb
70
70
  homepage: https://github.com/stevenjack/cfndsl
71
71
  licenses:
72
72
  - MIT
@@ -87,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
87
  version: '0'
88
88
  requirements: []
89
89
  rubyforge_project:
90
- rubygems_version: 2.0.3
90
+ rubygems_version: 2.2.2
91
91
  signing_key:
92
92
  specification_version: 4
93
93
  summary: AWS Cloudformation DSL