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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZTk5NDdmY2U5MTJhYTk2NjFiMzUxZTI4MDliYzRkYTlhMjE5Y2IyZQ==
4
+ NTVhZjYzYjk3Mjk4NTk4ZGIzZGM1MzJmNmI3MzZjYWViZjJmMzRjYw==
5
5
  data.tar.gz: !binary |-
6
- YjBlMGVmODM4YmFiNThkYmRlNDM4OTc4NDgxN2Q0ZmRlYWY2MGE3OQ==
6
+ MjIwYmU0ZTIwMDRlYTY5Y2RmY2Y1ZmIyODhhNzJmMmVhNGNkMGM1NQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZmNmZjRmZmVhNjYwOTAzZjIxZTc3NmEzYTNkOGFlZDI4ZWVhODhiMjZkYzBk
10
- ODMwNWU0NWFkNTUxMDkxMzEzNTU5Y2M3NTViNmEyYTViMGQwN2JmNTc5ODg2
11
- YmIyOTIxN2VhNzQ2OWQ4NDcyYzY5YTViNTQ0ZmEzNmE1M2RiYjc=
9
+ MDYyMDEyMGUxYzkzZTBiMTMyNzY5NjVhM2JkZWM0YThmYzEzYmFmMDkyMDRh
10
+ MjVmNTM3Y2ZhYTAzNTNhZjVhNTk4NzVkNGVmY2RjNTNkMTRkN2E2NmQwYjM1
11
+ Mjc3ZDA1ZmY3YjZhYjVkNTQ4OTkxZTVkMzgyMTI1ODI3ZTVlNjE=
12
12
  data.tar.gz: !binary |-
13
- N2JhNmQ0OWY0NTY1MWZhZTg5NGQ2Yjc3MzM5YmQ2NzM4OWYwYTMwMmEwNWEw
14
- ZTA4NjFiMzY3MmNlMzczZDUxNjVhNDdmMGM2NWI5OGM4MmE4MzU4M2U2ZWRm
15
- Yjg3MjY2OTM5OTE0OGNiMjZiMzdhMGY1ZmU5ZTFjMTAwZTUwZmQ=
13
+ OTljOWU3MzM4NDgzNTQwYTg2MGI5YTNhNmFkMzE2MDgxMzc2Yjk0ZTI2ZjEx
14
+ MjFjZWFhMDNlYmVlNGE4YjY4MjdkYjMxZDlmMjU1MDhmNjBjMTYxZWZiOTI5
15
+ Y2E3MDg5OTI1OTA1YTYyZTVjMWRjZGE2ZWUzZThiNjQ2ZmI4ZmU=
data/config.yml CHANGED
@@ -1,4 +1,4 @@
1
- version: 0.2.49
1
+ version: 0.2.50
2
2
  author: Niek Bartholomeus
3
3
  email: niek.bartholomeus@gmail.com
4
4
  homepage: https://github.com/BMC-RLM/brpm_content_framework
@@ -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
 
@@ -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"
@@ -54,6 +54,8 @@ class ModuleInstaller
54
54
  end
55
55
  end
56
56
  end
57
+
58
+ BrpmAuto.log "Module #{module_spec.name} #{module_spec.version} is now installed."
57
59
  end
58
60
 
59
61
  def uninstall_module(module_name, module_version)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brpm_content_framework
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.49
4
+ version: 0.2.50
5
5
  platform: ruby
6
6
  authors:
7
7
  - Niek Bartholomeus