Class: Terraframe::Provisioner

Inherits:
ScriptItem show all
Defined in:
lib/terraframe/resource.rb

Instance Attribute Summary

Attributes inherited from ScriptItem

#context, #fields, #vars

Instance Method Summary collapse

Methods inherited from ScriptItem

#id_of, #initialize, #method_missing, #output_of, #to_json

Constructor Details

This class inherits a constructor from Terraframe::ScriptItem

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Terraframe::ScriptItem

Instance Method Details

#connection(&block) ⇒ Object



41
42
43
44
# File 'lib/terraframe/resource.rb', line 41

def connection(&block)
  connection_set = Connection.new(vars, context, &block)
  @fields["connection"] = connection_set.fields
end