Skip to content

Commit 895cd61

Browse files
authored
Merge pull request #102 from tmaier/patch-1
Fix NoMethodError in #base_instructions etc.
2 parents 655bd11 + 8a6c377 commit 895cd61

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/generators/dockerfile_generator.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,7 @@ def base_instructions
994994
instructions = IO.read @@instructions["base"]
995995

996996
if instructions.start_with? "#!"
997-
instructions = "# custom instructions\nRUN #{@instructions["base"].strip}"
997+
instructions = "# custom instructions\nRUN #{@@instructions["base"].strip}"
998998
end
999999

10001000
instructions.html_safe
@@ -1006,7 +1006,7 @@ def build_instructions
10061006
instructions = IO.read @@instructions["build"]
10071007

10081008
if instructions.start_with? "#!"
1009-
instructions = "# custom build instructions\nRUN #{@instructions["build"].strip}"
1009+
instructions = "# custom build instructions\nRUN #{@@instructions["build"].strip}"
10101010
end
10111011

10121012
instructions.html_safe
@@ -1018,7 +1018,7 @@ def deploy_instructions
10181018
instructions = IO.read @@instructions["deploy"]
10191019

10201020
if instructions.start_with? "#!"
1021-
instructions = "# custom deploy instructions\nRUN #{@instructions["deploy"].strip}"
1021+
instructions = "# custom deploy instructions\nRUN #{@@instructions["deploy"].strip}"
10221022
end
10231023

10241024
instructions.html_safe

0 commit comments

Comments
 (0)