cfndsl 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/cfndsl.rb +6 -0
  2. metadata +2 -2
data/lib/cfndsl.rb CHANGED
@@ -25,6 +25,7 @@ class Module
25
25
  @#{plural} ||= {}
26
26
  @#{plural}[name] ||= CfnDsl::#{symbol}Definition.new(*values)
27
27
  @#{plural}[name].instance_eval &block if block_given?
28
+ return @#{plural}[name]
28
29
  end /
29
30
  end
30
31
  end
@@ -112,6 +113,10 @@ module CfnDsl
112
113
  return self.instance_variables.map { |var| self.instance_variable_get var }
113
114
  end
114
115
 
116
+ def declare(&block)
117
+ self.instance_eval &block if block_given?
118
+ end
119
+
115
120
  end
116
121
 
117
122
  class Fn < JSONable
@@ -134,6 +139,7 @@ module CfnDsl
134
139
  return [@argument]
135
140
  end
136
141
 
142
+
137
143
  end
138
144
 
139
145
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cfndsl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-12 00:00:00.000000000 Z
12
+ date: 2012-12-15 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: DSL for creating AWS Cloudformation templates
15
15
  email: chris@howeville.com