lib/aws/cfn/dsl/template.rb in aws-cfn-dsl-0.1.0 vs lib/aws/cfn/dsl/template.rb in aws-cfn-dsl-0.2.0
- old
+ new
@@ -6,13 +6,20 @@
module Aws
module Cfn
module Dsl
class Template < ::TemplateDSL
+ attr_reader :dict
- def initialize(&block)
- @path = File.dirname(caller[2].split(%r'\s+').shift.split(':')[0])
- super
+ def dict
+ @dict
+ end
+
+ def initialize(path=nil,&block)
+ @path = path || File.dirname(caller[2].split(%r'\s+').shift.split(':')[0])
+ super() do
+ # We do nothing with the template for now
+ end
end
def file(b)
block = File.read File.join(@path,b)
eval block