class Terraspace::Dependency::Helper::Output

Public Instance Methods

result() click to toggle source
# File lib/terraspace/dependency/helper/output.rb, line 3
def result
  if @mod.resolved # dependencies have been resolved
    Terraspace::Terraform::RemoteState::Fetcher.new(@mod, @identifier, @options).output # Returns OutputProxy which defaults to json
  else
    Terraspace::Terraform::RemoteState::Marker::Output.new(@mod, @identifier, @options).build # Returns OutputProxy => Unresolved
  end
end