lib/terraspace/compiler/strategy/tfvar/layer.rb
def layer_levels(prefix=nil)
      levels = ["base", Terraspace.env, @mod.instance] # layer levels
      env_levels = levels.map { |l| "#{Terraspace.env}/#{l}" } # env folder also
      levels = levels + env_levels
      levels.map do |i|
        [prefix, i].compact.join('/')
      end
    end
# adds prefix and to each layer pair that has base and Terraspace.env. IE:
#
#    "#{prefix}/base"
#    "#{prefix}/#{Terraspace.env}"
#
adds prefix and to each layer pair that has base and Terraspace.env.
adds prefix and to each layer pair that has base and Terraspace . env .
def layer_levels(prefix=nil)
      levels = ["base", Terraspace.env, @mod.instance] 
      env_levels = levels.map { |l| "#{Terraspace.env}/#{l}" } 
      levels = levels + env_levels
      levels.map do |i|
        [prefix, i].compact.join('/')
      end
    end
def layer_levels ( prefix = nil ) levels = [ "base" , Terraspace . env , @mod . instance ] env_levels = levels . map { | l | "#{Terraspace.env}/#{l}" } levels = levels + env_levels levels . map do | i | [ prefix , i ] . compact . join ( '/' ) end end
adds prefix and to each layer pair that has base and Terraspace.env.
adds prefix and to each layer pair that has base and Terraspace . env .
# layer levels # env folder also
prefix