Method: Roadworker::DSL#initialize
- Defined in:
- lib/roadworker/dsl.rb
#initialize(path, &block) ⇒ DSL
Returns a new instance of DSL.
29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/roadworker/dsl.rb', line 29 def initialize(path, &block) @path = path @result = OpenStruct.new({:hosted_zones => []}) @context = Hashie::Mash.new( :path => path, :templates => {} ) instance_eval(&block) end |