lib/terraspace/plugin/expander/interface.rb in terraspace-0.6.19 vs lib/terraspace/plugin/expander/interface.rb in terraspace-0.6.20

- old
+ new

@@ -32,16 +32,22 @@ # => # us-west-2/dev/stacks/wordpress/terraform.tfstate # def expansion(string) return string unless string.is_a?(String) # in case of nil + return string unless expand_string?(string) string = string.dup vars = string.scan(/:\w+/) # => [":ENV", ":BUILD_DIR"] vars.each do |var| string.gsub!(var, var_value(var)) end strip(string) + end + + # interface method + def expand_string?(string) + true end # remove leading and trailing common separators. # # This is useful for when INSTANCE is not set.