class GeoEngineer::Output

Outputs are mapped 1:1 to terraform outputs

{www.terraform.io/docs/configuration/outputs.html Terraform Docs}

Attributes

id[R]
value[R]

Public Class Methods

new(id, value, &block) click to toggle source
# File lib/geoengineer/output.rb, line 9
def initialize(id, value, &block)
  @id    = id
  @value = value
end

Public Instance Methods

to_terraform() click to toggle source
# File lib/geoengineer/output.rb, line 18
def to_terraform
  sb = ""
  sb += "output #{@id.inspect} { "
  sb += "\n"
  sb += "  value = #{@value.inspect}"
  sb += "\n"
  sb += " }"
  sb
end
to_terraform_json() click to toggle source
# File lib/geoengineer/output.rb, line 14
def to_terraform_json
  { id: { value: value } }
end