Class: Terraspace::Dependency::Helper::Output

Inherits:
Base
  • Object
show all
Defined in:
lib/terraspace/dependency/helper/output.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Terraspace::Dependency::Helper::Base

Instance Method Details

#resultObject



3
4
5
6
7
8
9
# 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