cloud_builder 0.0.12 → 0.0.13
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 +4 -4
- data/README.md +3 -0
- data/lib/cloud_builder/resource.rb +9 -0
- data/lib/cloud_builder/version.rb +1 -1
- data/lib/cloud_builder.rb +1 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5074889a3d0d0a991b5b0566659b4812ac6fac8e
|
|
4
|
+
data.tar.gz: d9796cb660052fc5924f391a3a58ac4a67132ddf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7c4187b616cee98a7de04a686db35a3c4e49907b43c82a5b2fa4e0105416216bff7cbd909c787c9bac174be7d942e10c69f9f874bc6a6eb7f0b94a5484b7acae
|
|
7
|
+
data.tar.gz: ea442a40bdd6d0b45a8a35018e1d56d7a7df50391ddaffa5e2f9ce8dfb8d64c6183e027805a8ac228225a25cef3e91710698f0d55882234fa060fc1a3204f48f
|
data/README.md
CHANGED
|
@@ -49,6 +49,9 @@ See stacks/example.rb for an example stack.
|
|
|
49
49
|
|
|
50
50
|
## Changelog
|
|
51
51
|
|
|
52
|
+
### 0.0.13
|
|
53
|
+
- add support for UpdatePolicy resource attribute (see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-updatepolicy.html)
|
|
54
|
+
|
|
52
55
|
### 0.0.12
|
|
53
56
|
- add --dummy flag; will add a dummy WaitConditionHandle to the stack to force updates in cases when only unused parameters or mappings are changed
|
|
54
57
|
|
|
@@ -10,6 +10,7 @@ module CloudBuilder
|
|
|
10
10
|
@metadata = {}
|
|
11
11
|
@block = block
|
|
12
12
|
@deletion_policy = nil
|
|
13
|
+
@update_policy = nil
|
|
13
14
|
|
|
14
15
|
# add metadata describing the brick we were defined in
|
|
15
16
|
if @block.binding.eval('@type')
|
|
@@ -47,6 +48,10 @@ module CloudBuilder
|
|
|
47
48
|
@deletion_policy = value
|
|
48
49
|
end
|
|
49
50
|
|
|
51
|
+
def update_policy(value)
|
|
52
|
+
@update_policy = value
|
|
53
|
+
end
|
|
54
|
+
|
|
50
55
|
def brick
|
|
51
56
|
@block.binding.eval('brick')
|
|
52
57
|
end
|
|
@@ -77,6 +82,10 @@ module CloudBuilder
|
|
|
77
82
|
if @deletion_policy
|
|
78
83
|
ret[DELETION_POLICY] = @deletion_policy
|
|
79
84
|
end
|
|
85
|
+
|
|
86
|
+
if @update_policy
|
|
87
|
+
ret[UPDATE_POLICY] = @update_policy
|
|
88
|
+
end
|
|
80
89
|
|
|
81
90
|
ret
|
|
82
91
|
end
|
data/lib/cloud_builder.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cloud_builder
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.13
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sorin Stoiana
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-07-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: netaddr
|
|
@@ -165,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
165
165
|
version: '0'
|
|
166
166
|
requirements: []
|
|
167
167
|
rubyforge_project:
|
|
168
|
-
rubygems_version: 2.0.
|
|
168
|
+
rubygems_version: 2.0.14
|
|
169
169
|
signing_key:
|
|
170
170
|
specification_version: 4
|
|
171
171
|
summary: Generate JSON config for AWS CloudFormation
|