Sha256: 4f53700abb72d80941e72384decd5eab9d5cc6003845284066d6629df76100f4

Contents?: true

Size: 458 Bytes

Versions: 2

Compression:

Stored size: 458 Bytes

Contents

module Terraspace::Dependency::Helper
  class Output < Base
    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 is NullObject when unresolved
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
terraspace-0.3.6 lib/terraspace/dependency/helper/output.rb
terraspace-0.3.5 lib/terraspace/dependency/helper/output.rb