Skip to content

Commit 5c9ed46

Browse files
committed
Cleanup build_test_script
1 parent 48bbeb3 commit 5c9ed46

File tree

1 file changed

+5
-10
lines changed
  • lib/manageiq/cross_repo/runner

1 file changed

+5
-10
lines changed

lib/manageiq/cross_repo/runner/base.rb

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ def initialize(script_cmd = nil)
1212
end
1313

1414
def build_test_script
15-
load_config!
16-
build_script
15+
<<~BASH_SCRIPT
16+
#!/bin/bash
17+
18+
#{build_commands.join("\n")}
19+
BASH_SCRIPT
1720
end
1821

1922
private
@@ -56,14 +59,6 @@ def build_section(section, *commands)
5659
]
5760
end
5861

59-
def build_script
60-
<<~BASH_SCRIPT
61-
#!/bin/bash
62-
63-
#{build_commands.join("\n")}
64-
BASH_SCRIPT
65-
end
66-
6762
def load_config!
6863
ci_config.tap do |config|
6964
# Set missing sections to the proper defaults

0 commit comments

Comments
 (0)