From 8a6c377ab110da8961c5051497bdfb688593d320 Mon Sep 17 00:00:00 2001 From: "Tobias L. Maier" Date: Tue, 4 Jun 2024 22:52:23 +0200 Subject: [PATCH] Fix NoMethodError in #base_instructions etc. --- lib/generators/dockerfile_generator.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/generators/dockerfile_generator.rb b/lib/generators/dockerfile_generator.rb index 4b13c8f..760cef3 100644 --- a/lib/generators/dockerfile_generator.rb +++ b/lib/generators/dockerfile_generator.rb @@ -982,7 +982,7 @@ def base_instructions instructions = IO.read @@instructions["base"] if instructions.start_with? "#!" - instructions = "# custom instructions\nRUN #{@instructions["base"].strip}" + instructions = "# custom instructions\nRUN #{@@instructions["base"].strip}" end instructions.html_safe @@ -994,7 +994,7 @@ def build_instructions instructions = IO.read @@instructions["build"] if instructions.start_with? "#!" - instructions = "# custom build instructions\nRUN #{@instructions["build"].strip}" + instructions = "# custom build instructions\nRUN #{@@instructions["build"].strip}" end instructions.html_safe @@ -1006,7 +1006,7 @@ def deploy_instructions instructions = IO.read @@instructions["deploy"] if instructions.start_with? "#!" - instructions = "# custom deploy instructions\nRUN #{@instructions["deploy"].strip}" + instructions = "# custom deploy instructions\nRUN #{@@instructions["deploy"].strip}" end instructions.html_safe