Class: TerraspaceBundler::Exporter::Stacks

Inherits:
Base
  • Object
show all
Defined in:
lib/terraspace_bundler/exporter/stacks.rb,
lib/terraspace_bundler/exporter/stacks/base.rb,
lib/terraspace_bundler/exporter/stacks/stack.rb,
lib/terraspace_bundler/exporter/stacks/rewrite.rb

Defined Under Namespace

Classes: Base, Rewrite, Stack

Instance Method Summary collapse

Constructor Details

#initialize(mod) ⇒ Stacks

Returns a new instance of Stacks.



3
4
5
6
# File 'lib/terraspace_bundler/exporter/stacks.rb', line 3

def initialize(mod)
  @mod = mod
  @stacks = mod.stacks || []
end

Instance Method Details

#exportObject



8
9
10
11
12
# File 'lib/terraspace_bundler/exporter/stacks.rb', line 8

def export
  @stacks.each do |options|
    Stack.new(@mod, options).export
  end
end