Method: Terraspace::Terraform::Api::Vars::Rb#var

Defined in:
lib/terraspace/terraform/api/vars/rb.rb

#var(attrs = {}) ⇒ Object



15
16
17
18
19
# File 'lib/terraspace/terraform/api/vars/rb.rb', line 15

def var(attrs={})
  default = { category: "terraform" } # required field
  var = default.deep_merge(attrs).deep_stringify_keys!
  @vars << var
end