lib/terraspace/compiler/strategy/tfvar.rb
# Tact on number to ensure that tfvars will be processed in desired order.
# Also name auto.tfvars so it will automatically load
Tact on number to ensure that tfvars will be processed in desired order.
Also name auto.tfvars so it will automatically load
Tact on number to ensure that tfvars will be processed in desired order . Also name auto . tfvars so it will automatically load
def ordered_name(layer_path)
      @order += 1
      prefix = @order.to_s.rjust(2, '0') 
      name = "#{prefix}-#{File.basename(layer_path)}"
      name.sub('.tfvars','.auto.tfvars')
          .sub('.rb','.auto.tfvars.json')
    end
def ordered_name ( layer_path ) @order += 1 prefix = @order . to_s . rjust ( 2 , '0' ) name = "#{prefix}-#{File.basename(layer_path)}" name . sub ( '.tfvars' , '.auto.tfvars' ) . sub ( '.rb' , '.auto.tfvars.json' ) end
Tact on number to ensure that tfvars will be processed in desired order.
Tact on number to ensure that tfvars will be processed in desired order .
# add leading 0 in case there are more than 10 layers
layer_path