brpm_content_framework 0.2.49 → 0.2.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/config.yml +1 -1
- data/lib/brpm_script_executor.rb +2 -2
- data/lib/logging/brpm_logger.rb +2 -3
- data/lib/logging/simple_logger.rb +2 -2
- data/lib/module_installer.rb +2 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
NTVhZjYzYjk3Mjk4NTk4ZGIzZGM1MzJmNmI3MzZjYWViZjJmMzRjYw==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
MjIwYmU0ZTIwMDRlYTY5Y2RmY2Y1ZmIyODhhNzJmMmVhNGNkMGM1NQ==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
MDYyMDEyMGUxYzkzZTBiMTMyNzY5NjVhM2JkZWM0YThmYzEzYmFmMDkyMDRh
|
|
10
|
+
MjVmNTM3Y2ZhYTAzNTNhZjVhNTk4NzVkNGVmY2RjNTNkMTRkN2E2NmQwYjM1
|
|
11
|
+
Mjc3ZDA1ZmY3YjZhYjVkNTQ4OTkxZTVkMzgyMTI1ODI3ZTVlNjE=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
OTljOWU3MzM4NDgzNTQwYTg2MGI5YTNhNmFkMzE2MDgxMzc2Yjk0ZTI2ZjEx
|
|
14
|
+
MjFjZWFhMDNlYmVlNGE4YjY4MjdkYjMxZDlmMjU1MDhmNjBjMTYxZWZiOTI5
|
|
15
|
+
Y2E3MDg5OTI1OTA1YTYyZTVjMWRjZGE2ZWUzZThiNjQ2ZmI4ZmU=
|
data/config.yml
CHANGED
data/lib/brpm_script_executor.rb
CHANGED
|
@@ -64,10 +64,10 @@ class BrpmScriptExecutor
|
|
|
64
64
|
file.puts(params_for_process.to_yaml)
|
|
65
65
|
end
|
|
66
66
|
|
|
67
|
-
destination_utf_file = File.expand_path("file_in_utf.rb", script_support_path)
|
|
68
67
|
source_utf_file = File.expand_path("../../config/initializers/file_in_utf.rb", script_support_path)
|
|
68
|
+
destination_utf_file = File.expand_path("file_in_utf.rb", script_support_path)
|
|
69
69
|
if File.exists?(source_utf_file) and File.size(destination_utf_file) != File.size(source_utf_file)
|
|
70
|
-
BrpmAuto "Copying file_in_utf.rb from RPM/config/initializers to #{script_support_path}..."
|
|
70
|
+
BrpmAuto.log "Copying file_in_utf.rb from RPM/config/initializers to #{script_support_path}..."
|
|
71
71
|
FileUtils.copy(source_utf_file, destination_utf_file)
|
|
72
72
|
end
|
|
73
73
|
|
data/lib/logging/brpm_logger.rb
CHANGED
|
@@ -11,7 +11,6 @@ class BrpmLogger < LoggerBase
|
|
|
11
11
|
@request_log_file_path = "#{BrpmAuto.params.automation_results_dir}/#{BrpmAuto.params.request_id}.log"
|
|
12
12
|
|
|
13
13
|
@step_run_log_file_path = "#{BrpmAuto.params.automation_results_dir}/#{BrpmAuto.params.request_id}_#{BrpmAuto.params.step_id}_#{BrpmAuto.params.run_key}.log"
|
|
14
|
-
#@step_run_log_file_path = BrpmAuto.params.output_file
|
|
15
14
|
|
|
16
15
|
print "Logging to #{@step_run_log_file_path} and #{@request_log_file_path}\n" unless BrpmAuto.params.also_log_to_console
|
|
17
16
|
end
|
|
@@ -21,10 +20,10 @@ class BrpmLogger < LoggerBase
|
|
|
21
20
|
timestamp = "#{Time.now.strftime("%Y-%m-%d %H:%M:%S")}"
|
|
22
21
|
|
|
23
22
|
if with_prefix
|
|
24
|
-
prefix = ""
|
|
25
|
-
else
|
|
26
23
|
prefix = "#{timestamp}|#{'%2.2s' % @step_number}|#{'%-20.20s' % @step_name}|"
|
|
27
24
|
message.gsub!("\n", "\n" + (" " * prefix.length))
|
|
25
|
+
else
|
|
26
|
+
prefix = ""
|
|
28
27
|
end
|
|
29
28
|
|
|
30
29
|
log_message = "#{prefix}#{message}\n"
|
|
@@ -13,10 +13,10 @@ class SimpleLogger < LoggerBase
|
|
|
13
13
|
timestamp = "#{Time.now.strftime("%Y-%m-%d %H:%M:%S")}"
|
|
14
14
|
|
|
15
15
|
if with_prefix
|
|
16
|
-
prefix = ""
|
|
17
|
-
else
|
|
18
16
|
prefix = "#{timestamp}|"
|
|
19
17
|
message = message.gsub("\n", "\n" + (" " * prefix.length))
|
|
18
|
+
else
|
|
19
|
+
prefix = ""
|
|
20
20
|
end
|
|
21
21
|
|
|
22
22
|
log_message = "#{prefix}#{message}\n"
|
data/lib/module_installer.rb
CHANGED