lib/sapluuna/context.rb in sapluuna-0.1.7 vs lib/sapluuna/context.rb in sapluuna-0.2.0

- old
+ new

@@ -41,12 +41,13 @@ private def import file template = File.read resolve_file(file) - @opts[:variables] = @variables - @opts[:root_directory] = @root_directory.dup + @opts[:variables] = @variables + @opts[:root_directory] = @root_directory.dup @opts[:discover_variables] = @discover_variables + @opts[:context] = self.class Log.debug "importing #{file}" sapl = Sapluuna.new @opts output = sapl.parse template @discovered_variables.merge! sapl.discovered_variables add_indent output.lines, @output.lines.last