cfndsl 0.1.6 → 0.1.7
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 +7 -0
- data/lib/cfndsl.rb +1 -0
- data/lib/cfndsl/CreationPolicy.rb +25 -0
- data/lib/cfndsl/Plurals.rb +2 -1
- data/lib/cfndsl/Resources.rb +1 -1
- metadata +11 -31
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 177ef997cc05e32d345c40ed7c2f951d8c7e6111
|
4
|
+
data.tar.gz: 42b62f16164125f8a3395855c382090a4159fd03
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 0fbbc5a0bcf3e4d0ffa515aef99c34dce9089963c7ef20cde7c57e9ce90f0a075482288e2b4518b90c8aae74c894e039bec39f9ee6adc07379bedada24877908
|
7
|
+
data.tar.gz: 2454156c59d328e2aab5d78dc3cedaaaea8eec19281bd1270ae76ee0cab91c2d84b644eac5bd1c733b44f917dee64c7fac93630a97dbe0363c765155a617d5cd
|
data/lib/cfndsl.rb
CHANGED
@@ -0,0 +1,25 @@
|
|
1
|
+
require 'cfndsl/JSONable'
|
2
|
+
|
3
|
+
module CfnDsl
|
4
|
+
class CreationPolicyDefinition < JSONable
|
5
|
+
##
|
6
|
+
# Handles creation policy objects for Resources
|
7
|
+
#
|
8
|
+
# Usage
|
9
|
+
# Resource("aaa") {
|
10
|
+
# CreationPolicy('ResourceSignal', { 'Count' => 1, 'Timeout' => 'PT10M' })
|
11
|
+
# }
|
12
|
+
#
|
13
|
+
def initialize(value)
|
14
|
+
@value = value;
|
15
|
+
end
|
16
|
+
|
17
|
+
def value
|
18
|
+
return @value
|
19
|
+
end
|
20
|
+
|
21
|
+
def to_json(*a)
|
22
|
+
@value.to_json(*a)
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
data/lib/cfndsl/Plurals.rb
CHANGED
@@ -13,7 +13,8 @@ module CfnDsl
|
|
13
13
|
"SecurityGroupIngress" => "SecurityGroupIngress",
|
14
14
|
"SecurityGroupEgress" => "SecurityGroupEgress",
|
15
15
|
"DBSecurityGroupIngress" => "DBSecurityGroupIngress",
|
16
|
-
"UpdatePolicy" => "UpdatePolicy"
|
16
|
+
"UpdatePolicy" => "UpdatePolicy",
|
17
|
+
"CreationPolicy" => "CreationPolicy"
|
17
18
|
}
|
18
19
|
|
19
20
|
@@singles = {}
|
data/lib/cfndsl/Resources.rb
CHANGED
@@ -8,7 +8,7 @@ module CfnDsl
|
|
8
8
|
##
|
9
9
|
# Handles Resource objects
|
10
10
|
dsl_attr_setter :Type, :DependsOn, :DeletionPolicy, :Condition
|
11
|
-
dsl_content_object :Property, :Metadata, :UpdatePolicy
|
11
|
+
dsl_content_object :Property, :Metadata, :UpdatePolicy, :CreationPolicy
|
12
12
|
|
13
13
|
def addTag(name, value, propagate=nil)
|
14
14
|
self.send(:Tag) {
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cfndsl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.7
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Steven Jack
|
@@ -10,38 +9,20 @@ authors:
|
|
10
9
|
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date: 2014-
|
12
|
+
date: 2014-12-26 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
|
-
name:
|
15
|
+
name: bundler
|
17
16
|
requirement: !ruby/object:Gem::Requirement
|
18
|
-
none: false
|
19
17
|
requirements:
|
20
|
-
- -
|
18
|
+
- - '>='
|
21
19
|
- !ruby/object:Gem::Version
|
22
20
|
version: '0'
|
23
21
|
type: :development
|
24
22
|
prerelease: false
|
25
23
|
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
none: false
|
27
24
|
requirements:
|
28
|
-
- -
|
29
|
-
- !ruby/object:Gem::Version
|
30
|
-
version: '0'
|
31
|
-
- !ruby/object:Gem::Dependency
|
32
|
-
name: test-unit
|
33
|
-
requirement: !ruby/object:Gem::Requirement
|
34
|
-
none: false
|
35
|
-
requirements:
|
36
|
-
- - ! '>='
|
37
|
-
- !ruby/object:Gem::Version
|
38
|
-
version: '0'
|
39
|
-
type: :development
|
40
|
-
prerelease: false
|
41
|
-
version_requirements: !ruby/object:Gem::Requirement
|
42
|
-
none: false
|
43
|
-
requirements:
|
44
|
-
- - ! '>='
|
25
|
+
- - '>='
|
45
26
|
- !ruby/object:Gem::Version
|
46
27
|
version: '0'
|
47
28
|
description: DSL for creating AWS Cloudformation templates
|
@@ -71,32 +52,31 @@ files:
|
|
71
52
|
- lib/cfndsl/Plurals.rb
|
72
53
|
- lib/cfndsl/names.rb
|
73
54
|
- lib/cfndsl/CloudFormationTemplate.rb
|
55
|
+
- lib/cfndsl/CreationPolicy.rb
|
74
56
|
- lib/cfndsl/UpdatePolicy.rb
|
75
57
|
- bin/cfndsl
|
76
58
|
homepage: https://github.com/stevenjack/cfndsl
|
77
59
|
licenses:
|
78
60
|
- MIT
|
61
|
+
metadata: {}
|
79
62
|
post_install_message:
|
80
63
|
rdoc_options: []
|
81
64
|
require_paths:
|
82
65
|
- lib
|
83
66
|
required_ruby_version: !ruby/object:Gem::Requirement
|
84
|
-
none: false
|
85
67
|
requirements:
|
86
|
-
- -
|
68
|
+
- - '>='
|
87
69
|
- !ruby/object:Gem::Version
|
88
70
|
version: '0'
|
89
71
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
90
|
-
none: false
|
91
72
|
requirements:
|
92
|
-
- -
|
73
|
+
- - '>='
|
93
74
|
- !ruby/object:Gem::Version
|
94
75
|
version: '0'
|
95
76
|
requirements: []
|
96
77
|
rubyforge_project:
|
97
|
-
rubygems_version:
|
78
|
+
rubygems_version: 2.0.14
|
98
79
|
signing_key:
|
99
|
-
specification_version:
|
80
|
+
specification_version: 4
|
100
81
|
summary: AWS Cloudformation DSL
|
101
82
|
test_files: []
|
102
|
-
has_rdoc:
|