cloud_former 0.7.1 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 673d2206d9dac2d4227f4aba0db536b62c8f5ad0
4
- data.tar.gz: 6e9238d959fcfffdfb3e7366cf4863cfdcfd03e6
3
+ metadata.gz: d8f97598610a8459faa5a88707af5431a44f1b2c
4
+ data.tar.gz: 02fe88e39891dd5d06279b14841847dcb73f0dca
5
5
  SHA512:
6
- metadata.gz: c0099e4949ffe133be81a3f184e90f32449410ddcad6e88e2979e4d5e3052e1740d229dae0e325709fd19b575eb6b767972fc362fc495ab4ae74c486610bbe07
7
- data.tar.gz: 08c019d2444c3c016d2a63347b2166ab2cf220d93ced647c5ebccee65008dcef891abf00191811d412f8ae0329e65775b008e20bdae91b030d783b8cf5b481e1
6
+ metadata.gz: 5784ce7010c198771ea400c4c5442e8490371aee6ded71540e9a9f9a49c03a013aea32ef36f201e1c4db8718c8dc107875d6dedab4fbd952c04fcc15945d5420
7
+ data.tar.gz: 5d300778228dbdeeccf0da1876624fcf87f3bf91126b4f18897949f2157027284447dcae539a070c41cfceb5dd8009307bab724e2de4c2b93929d6dedb07bbf0
@@ -13,10 +13,18 @@ module CloudFormer
13
13
  @parameters << parameter
14
14
  end
15
15
 
16
+ def parameter(name)
17
+ @parameters.find { |p| p.get_name == name }
18
+ end
19
+
16
20
  def add_resource(resource)
17
21
  @resources << resource
18
22
  end
19
23
 
24
+ def resource(name)
25
+ @resources.find { |r| r.get_name == name }
26
+ end
27
+
20
28
  def add_output(key, value)
21
29
  @outputs << [key, value]
22
30
  end
@@ -25,6 +33,10 @@ module CloudFormer
25
33
  @conditions << condition
26
34
  end
27
35
 
36
+ def condition(name)
37
+ @conditions.find { |c| c.get_name == name }
38
+ end
39
+
28
40
  def add_mapping(name, hash)
29
41
  @mappings[name] = hash
30
42
  end
@@ -1,3 +1,3 @@
1
1
  module CloudFormer
2
- VERSION = '0.7.1'
2
+ VERSION = '0.7.2'
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.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aubrey Holland