Method: Cfer::Core::Resource.extend_resource

Defined in:
lib/cfer/core/resource.rb

.extend_resource(type, &block) ⇒ Object

Patches code into DSL classes for CloudFormation resources

Parameters:

  • type (String)

    The type of resource, for example AWS::EC2::Instance



70
71
72
# File 'lib/cfer/core/resource.rb', line 70

def extend_resource(type, &block)
  resource_class(type).class_eval(&block)
end