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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 63acf594595b78a9eafee5d3abc95758d98fc59b
4
- data.tar.gz: 8edb6ef4b1779430320c1a2df7567192959a7e07
3
+ metadata.gz: 5074889a3d0d0a991b5b0566659b4812ac6fac8e
4
+ data.tar.gz: d9796cb660052fc5924f391a3a58ac4a67132ddf
5
5
  SHA512:
6
- metadata.gz: fdaec273e3dbfcaaf2157555c152802338bff10c0faae5fa3e0c364977623a09b72959b156469111767ac14b7e9460f270062b944b0eb8de981fcec8b38e980f
7
- data.tar.gz: 366a42951bd624f74e35fa59631749b5c7b6e442b22496f8f09ab7bf9d9850b1f611d93870a5382c037d1ff33657fbd680937982a11967b5270492e0dd4d68c7
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
@@ -1,3 +1,3 @@
1
1
  module CloudBuilder
2
- GEM_VERSION = "0.0.12"
2
+ GEM_VERSION = "0.0.13"
3
3
  end
data/lib/cloud_builder.rb CHANGED
@@ -37,6 +37,7 @@ module CloudBuilder
37
37
  PROPAGATE_AT_LAUNCH = 'PropagateAtLaunch'
38
38
  VERSION = 'AWSTemplateFormatVersion'
39
39
  DELETION_POLICY = 'DeletionPolicy'
40
+ UPDATE_POLICY = 'UpdatePolicy'
40
41
 
41
42
 
42
43
  class Spec
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.12
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-02-13 00:00:00.000000000 Z
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.3
168
+ rubygems_version: 2.0.14
169
169
  signing_key:
170
170
  specification_version: 4
171
171
  summary: Generate JSON config for AWS CloudFormation