Class: SparkleFormation::SparkleStruct::Terraform
- Inherits:
-
SparkleFormation::SparkleStruct
- Object
- AttributeStruct
- SparkleFormation::SparkleStruct
- SparkleFormation::SparkleStruct::Terraform
- Defined in:
- lib/sparkle_formation/sparkle_struct.rb
Overview
Terraform specific struct
Instance Method Summary collapse
-
#__attribute_key(key) ⇒ String
included
from SparkleFormation::SparkleAttribute
Format the provided key.
-
#__resource_lookup(name) ⇒ String
included
from SparkleFormation::SparkleAttribute::Terraform
Lookup resource based on name and provide formatted reference to the resource with type included.
-
#_depends_on(*args) ⇒ Array<String>
(also: #depends_on!)
included
from SparkleFormation::SparkleAttribute::Terraform
Resource dependency generator.
- #_dynamic(name, *args) {|new_struct| ... } ⇒ self (also: #dynamic!) included from SparkleFormation::SparkleAttribute
-
#_fn_format(*args) ⇒ SparkleFormation::FunctionStruct
included
from SparkleFormation::SparkleAttribute::Terraform
Generate a builtin terraform function.
-
#_method(sym) ⇒ Method
(also: #method!)
included
from SparkleFormation::SparkleAttribute
Lookup a method definition on self.
- #_module(m_name) ⇒ Object (also: #module!) included from SparkleFormation::SparkleAttribute::Terraform
-
#_nest(template, *names, options = {}) ⇒ self
(also: #nest!)
included
from SparkleFormation::SparkleAttribute
Nest a stack resource.
- #_path(p_name) ⇒ Object (also: #path!) included from SparkleFormation::SparkleAttribute::Terraform
-
#_puts(obj, ...) ⇒ NilClass
(also: #puts!)
included
from SparkleFormation::SparkleAttribute
Print to stdout.
-
#_raise(*args) ⇒ Object
(also: #raise!)
included
from SparkleFormation::SparkleAttribute
Raise an exception.
-
#_registry(name, *args) ⇒ Object
(also: #registry!)
included
from SparkleFormation::SparkleAttribute
Return value of registry item.
-
#_resource(r_name) ⇒ Object
(also: #resource!)
included
from SparkleFormation::SparkleAttribute::Terraform
TODO: Add resource checking before returning structure.
-
#_resource_name ⇒ String
(also: #resource_name!)
included
from SparkleFormation::SparkleAttribute
Return current resource name.
-
#_stack_output(stack_name, output_name) ⇒ Hash
(also: #stack_output!)
included
from SparkleFormation::SparkleAttribute::Terraform
Reference output value from nested stack.
-
#_system(command) ⇒ String
(also: #system!)
included
from SparkleFormation::SparkleAttribute
Execute system command.
- #_terraform_lookup(*args) ⇒ Object (also: #lookup!) included from SparkleFormation::SparkleAttribute::Terraform
- #_terraform_self(s_name) ⇒ Object (also: #self!) included from SparkleFormation::SparkleAttribute::Terraform
- #_var(v_name) ⇒ Object (also: #var!, #parameter!) included from SparkleFormation::SparkleAttribute::Terraform
Constructor Details
This class inherits a constructor from SparkleFormation::SparkleStruct
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class SparkleFormation::SparkleStruct
Instance Method Details
#__attribute_key(key) ⇒ String Originally defined in module SparkleFormation::SparkleAttribute
Format the provided key. If symbol type is provided formatting is forced. Otherwise the default formatting is applied
#__resource_lookup(name) ⇒ String Originally defined in module SparkleFormation::SparkleAttribute::Terraform
Lookup resource based on name and provide formatted reference to the resource with type included.
#_depends_on(resource_name) ⇒ Array<String> #_depends_on(resource_names) ⇒ Array<String> #_depends_on(*resource_names) ⇒ Array<String> Also known as: depends_on! Originally defined in module SparkleFormation::SparkleAttribute::Terraform
this will directly modify the struct at its current context to inject depends on structure
Resource dependency generator
#_dynamic(resource_type, custom_name, options = {}) ⇒ self #_dynamic(dynamic_name, custom_name, options = {}) ⇒ self Also known as: dynamic! Originally defined in module SparkleFormation::SparkleAttribute
#_fn_format(*args) ⇒ SparkleFormation::FunctionStruct Originally defined in module SparkleFormation::SparkleAttribute::Terraform
Generate a builtin terraform function
#_method(sym) ⇒ Method Also known as: method! Originally defined in module SparkleFormation::SparkleAttribute
usually used as puts! method!(:foo).source_location
#_module(m_name) ⇒ Object Also known as: module! Originally defined in module SparkleFormation::SparkleAttribute::Terraform
#_nest(template, *names, options = {}) ⇒ self Also known as: nest! Originally defined in module SparkleFormation::SparkleAttribute
#_path(p_name) ⇒ Object Also known as: path! Originally defined in module SparkleFormation::SparkleAttribute::Terraform
#_puts(obj, ...) ⇒ NilClass Also known as: puts! Originally defined in module SparkleFormation::SparkleAttribute
#_raise(*args) ⇒ Object Also known as: raise! Originally defined in module SparkleFormation::SparkleAttribute
Raise an exception
#_registry(name) ⇒ Object #_registry(name, *args, options = {}) ⇒ Object Also known as: registry! Originally defined in module SparkleFormation::SparkleAttribute
Return value of registry item
#_resource(r_name) ⇒ Object Also known as: resource! Originally defined in module SparkleFormation::SparkleAttribute::Terraform
TODO: Add resource checking before returning structure
#_resource_name ⇒ String Also known as: resource_name! Originally defined in module SparkleFormation::SparkleAttribute
Return current resource name
#_stack_output(stack_name, output_name) ⇒ Hash Also known as: stack_output! Originally defined in module SparkleFormation::SparkleAttribute::Terraform
Reference output value from nested stack
#_system(command) ⇒ String Also known as: system! Originally defined in module SparkleFormation::SparkleAttribute
Execute system command