lib/miam/dsl/context/group.rb in miam-0.2.2.beta vs lib/miam/dsl/context/group.rb in miam-0.2.2.beta2
- old
+ new
@@ -1,7 +1,10 @@
class Miam::DSL::Context::Group
- def initialize(name, &block)
+ include Miam::TemplateHelper
+
+ def initialize(context, name, &block)
@group_name = name
+ @context = context.merge(:group_name => name)
@result = {:policies => {}, :attached_managed_policies => []}
instance_eval(&block)
end
attr_reader :result