cloud_former 0.5.12 → 0.5.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: 05bbd10279a64112c993fb0b38f75eae4f643aba
4
- data.tar.gz: 6a8030ea2638dde56cb4046c7bd4182c331b66fa
3
+ metadata.gz: 455e08fb6d89772ae26e8aafe48860c97e478bd1
4
+ data.tar.gz: 24e931c5c1c05ed6806a4c0a669dfa240229010d
5
5
  SHA512:
6
- metadata.gz: 6a81e66c520ccc88f73d77720f58555af8e2b2bea09411622210cf5bfbb90456dc7ea1440b218909085eac5fac27e0904cc4001371d41a0c9b9994f05c143dfe
7
- data.tar.gz: ce9b8e427965f7c3a81465019a6c9bd899f2dc2e0105136a9025fdb7267026772f8dbcf0315bb664787998eaa872f41dc083f3d66b1b1b21b1fb9e3c1a6e1a5e
6
+ metadata.gz: 034974211ab749ba87fab1230d1f39703434064134903ba5f0c728697dd7329f1eb6b70a3e1abf18d171955cbe7cedb1fc10ed16af25ac67e7967114620f7881
7
+ data.tar.gz: c90be0ed15425253c2ecb05e182da9cc283a855942a224bf7a95c9316e38b607830a3d5957369fabe8d1c2ece2e847f6c38710c46521dd63ae957b6a1a22c27b
@@ -3,11 +3,13 @@ module CloudFormer
3
3
  module IAM
4
4
  class Group < Resource
5
5
  aws_property :path, type: String
6
- aws_property :policies,
6
+ aws_property(
7
+ :policies,
7
8
  embed: true,
8
9
  skip_properties: true,
9
10
  list: true,
10
- type: Policy
11
+ type: Policy,
12
+ )
11
13
  end
12
14
  end
13
15
  end
@@ -5,11 +5,13 @@ module CloudFormer
5
5
  aws_property :path, type: String
6
6
  aws_property :groups, list: true, type: Group
7
7
  aws_property :login_profile, type: Hash
8
- aws_property :policies,
8
+ aws_property(
9
+ :policies,
9
10
  embed: true,
10
11
  skip_properties: true,
11
12
  list: true,
12
- type: Policy
13
+ type: Policy,
14
+ )
13
15
  end
14
16
  end
15
17
  end
@@ -11,6 +11,7 @@ module CloudFormer
11
11
 
12
12
  aws_attribute :depends_on, list: true, type: String
13
13
  aws_attribute :deletion_policy, type: String
14
+ aws_attribute :condition, type: String
14
15
 
15
16
  def initialize(name = nil, &block)
16
17
  @name = name
@@ -20,7 +21,7 @@ module CloudFormer
20
21
  self.instance_eval(&block)
21
22
  end
22
23
  if @name.nil? || @name.empty?
23
- fail ArgumentError, "Attempting to create a resource of type #{self.class.name} with no name"
24
+ raise ArgumentError, "Attempting to create a resource of type #{self.class.name} with no name"
24
25
  end
25
26
  end
26
27
 
@@ -56,7 +56,7 @@ module CloudFormer
56
56
  if @outputs.any?
57
57
  output_res = {}
58
58
  @outputs.each do |output|
59
- if (output[1].is_a?(Resource) || output[1].is_a?(Parameter))
59
+ if output[1].is_a?(Resource) || output[1].is_a?(Parameter)
60
60
  output_res[output[0]] = { 'Value' => { 'Ref' => output[1].get_name } }
61
61
  elsif output[1].is_a?(Function)
62
62
  output_res[output[0]] = { 'Value' => output[1].dump_json }
@@ -1,3 +1,3 @@
1
1
  module CloudFormer
2
- VERSION = '0.5.12'
2
+ VERSION = '0.5.13'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloud_former
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.12
4
+ version: 0.5.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aubrey Holland