Sha256: 57f0866ce65b041c70c8057a6ab196148ba21d134406df521d349488da6e6d03

Contents?: true

Size: 542 Bytes

Versions: 1

Compression:

Stored size: 542 Bytes

Contents

module Terraspace::Dependency
  class Resolver
    include Terraspace::Compiler::DirsConcern

    def initialize(options={})
      @options = options
    end

    def resolve
      with_each_mod("stacks") do |mod|
        Terraspace::Compiler::Perform.new(mod).compile_tfvars(write: false)
      end

      dependencies = Terraspace::Dependency::Registry.data # populated dependencies resolved
      @graph = Terraspace::Dependency::Graph.new(stack_names, dependencies, @options)
      @graph.build # Returns batches to run
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
terraspace-1.1.0 lib/terraspace/dependency/resolver.rb