brpm_content_framework 0.2.64 → 0.2.65
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/config.yml +1 -1
- data/lib/brpm_script_executor.rb +1 -1
- data/lib/utilities.rb +3 -2
- data/tests/params_spec.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MGU2NDQ0MmNkNDNlOWE1YTNkYjEzZWQ5OGI5OTA2ZGVhNzBlYzgwMA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YTQ1YWE2NmFjMTU5OWFhZmRlODY1MzAyMGI2NjY3YTg1ZmY4MDIzOQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZmY2NDFmZWQ5NzRiYzgxNWFmMzQ0NzE5MzQ5NjBlODI2NDEzNmNkZDg3NTBj
|
10
|
+
YzJmNTE2ZjI5ZTZhOWJkYzhjMzNlMmIyOThhMTQ3ZmI4MDJkM2UxMzI0NTA1
|
11
|
+
MjExMzI0ZTI4YzBjYmNjODEwNTVmN2EzNGE2OTY1ODM4MTA5MGI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NThhNDE0NmYzZTFhY2YzOWMyNDhhYjE4MmNlNDg0NmNlZjBmNGFjYWY1NDgx
|
14
|
+
YjkxNzIwMGM4NjIzODc1MzVmYTM4ZTBmMTAzNGFlNTRiODQ0NDQzZDE5ZmY5
|
15
|
+
YTgwMjM3NTQ2ZmEzM2M2OWUxYjhjNzc3ZDZmOTQ1MjUyOGU3YmY=
|
data/config.yml
CHANGED
data/lib/brpm_script_executor.rb
CHANGED
@@ -141,7 +141,7 @@ EOR
|
|
141
141
|
|
142
142
|
raise e
|
143
143
|
ensure
|
144
|
-
load File.expand_path("#{File.dirname(__FILE__)}/../infrastructure/write_to.rb") if BrpmAuto.params.run_from_brpm and
|
144
|
+
load File.expand_path("#{File.dirname(__FILE__)}/../infrastructure/write_to.rb") if BrpmAuto.params.run_from_brpm and automation_type != "resource_automation"
|
145
145
|
end
|
146
146
|
end
|
147
147
|
|
data/lib/utilities.rb
CHANGED
@@ -97,13 +97,14 @@ module Utilities
|
|
97
97
|
|
98
98
|
if block_given?
|
99
99
|
{ :out => stdout, :err => stderr }.each do |key, stream|
|
100
|
-
Thread.new do
|
100
|
+
log_thread = Thread.new do
|
101
101
|
while line = stream.gets
|
102
102
|
privatized_line = BrpmAuto.privatize(line)
|
103
103
|
logs[key] += privatized_line
|
104
104
|
yield privatized_line
|
105
105
|
end
|
106
|
-
end
|
106
|
+
end
|
107
|
+
log_thread.join
|
107
108
|
end
|
108
109
|
|
109
110
|
thread.join
|
data/tests/params_spec.rb
CHANGED
@@ -110,6 +110,7 @@ describe 'Params' do
|
|
110
110
|
input_params = get_default_params
|
111
111
|
|
112
112
|
#trick it into thinking that it is run from BRPM
|
113
|
+
input_params["application"] = "Test"
|
113
114
|
input_params["run_key"] = "123"
|
114
115
|
input_params["automation_results_dir"] = input_params["output_dir"]
|
115
116
|
input_params["request_id"] = "123"
|