brpm_content_framework 0.2.12 → 0.2.13
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/infrastructure/create_output_file.rb +9 -0
- data/infrastructure/write_to.rb +1 -0
- data/lib/brpm_script_executor.rb +3 -8
- metadata +3 -2
- data/lib/write_to.rb +0 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YTk4ZmZiMGZmZDYyOGNmM2NjYjdjN2M5MGZkODk1OTgxOWZmZmYzZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MTNjYjM0ZGY0ZjI4ZDY5ODYwYTA2YjA5MGNjMjA2MDQ4ZDJjNGJmOA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MWZkOWQ5ZjQxODE4MTFkMzM2MzY0NmQ1OWVkMDg4MjEyN2YyNjY5MjlhNGUy
|
10
|
+
M2UxMmRkMjk3MTgxN2QyNWExYTllODM5NWU5ZmNmZTQ0YzM2ZGFmODk4ZmFk
|
11
|
+
ZTg2MTU2NjAyNjFmOTRjYWQ5ZDJlZjc2NTUzNjhiMmFjYjA3MWQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MzIzYTcyYjc1MjA2N2NkZjYwMTNkMDdmOTc4MWQzYmM2ZTVlY2YzYzFjMmRm
|
14
|
+
NzMzMWM0NDMyYmY0MGE3OGQ0NWNmOTAzNDMxNjYxZDY1MmI1YjE3NGMwZTIz
|
15
|
+
Y2NkNTVjMmRjNzc2MzAwZWExZWU4NDFjNGNmOWIyNDNmMGJlNGM=
|
data/config.yml
CHANGED
@@ -0,0 +1,9 @@
|
|
1
|
+
if BrpmAuto.params["SS_run_key"] and BrpmAuto.params["SS_script_support_path"]
|
2
|
+
puts "Loading script_support libraries..."
|
3
|
+
require "#{params["SS_script_support_path"]}/ssh_script_header.rb"
|
4
|
+
require "#{params["SS_script_support_path"]}/script_helper.rb"
|
5
|
+
require "#{params["SS_script_support_path"]}/file_in_utf.rb"
|
6
|
+
end
|
7
|
+
|
8
|
+
# this line must be executed before the automation script is run because it sets the @hand variable which will be used inside the BRPM core framework
|
9
|
+
@hand = FileInUTF.open(BrpmAuto.params["SS_output_file"], "a")
|
@@ -0,0 +1 @@
|
|
1
|
+
write_to(File.read(BrpmAuto.logger.step_run_log_file_path))
|
data/lib/brpm_script_executor.rb
CHANGED
@@ -35,12 +35,7 @@ class BrpmScriptExecutor
|
|
35
35
|
BrpmAuto.log "Deleting params file #{params_file}..."
|
36
36
|
FileUtils.rm(params_file)
|
37
37
|
|
38
|
-
|
39
|
-
BrpmAuto.log "Loading script_support libraries..."
|
40
|
-
require "#{params["SS_script_support_path"]}/ssh_script_header.rb"
|
41
|
-
require "#{params["SS_script_support_path"]}/script_helper.rb"
|
42
|
-
require "#{params["SS_script_support_path"]}/file_in_utf.rb"
|
43
|
-
end
|
38
|
+
load File.expand_path("#{File.dirname(__FILE__)}/../infrastructure/create_output_file.rb")
|
44
39
|
|
45
40
|
execute_automation_script_internal(modul, name, params, automation_type, parent_id, offset, max_records)
|
46
41
|
end
|
@@ -94,7 +89,7 @@ class BrpmScriptExecutor
|
|
94
89
|
if result.nil?
|
95
90
|
BrpmAuto.log_error("The process that executed the automation script returned with 'Command execution failed'.")
|
96
91
|
elsif result == false
|
97
|
-
BrpmAuto.log_error("The process that executed the automation script
|
92
|
+
BrpmAuto.log_error("The process that executed the automation script returned with non-zero exit code: #{$?.exitstatus}")
|
98
93
|
end
|
99
94
|
|
100
95
|
result
|
@@ -138,7 +133,7 @@ class BrpmScriptExecutor
|
|
138
133
|
BrpmAuto.log ">>>>>>>>>>>>>> STOP #{automation_type} #{name} - total duration: #{Time.at(duration).utc.strftime("%H:%M:%S")}"
|
139
134
|
BrpmAuto.log ""
|
140
135
|
|
141
|
-
#load "#{File.dirname(__FILE__)}/write_to.rb" if BrpmAuto.params.run_from_brpm
|
136
|
+
#load File.expand_path("#{File.dirname(__FILE__)}/../infrastructure/write_to.rb") if BrpmAuto.params.run_from_brpm
|
142
137
|
end
|
143
138
|
end
|
144
139
|
def get_module_gem_path(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.
|
4
|
+
version: 0.2.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Niek Bartholomeus
|
@@ -127,6 +127,7 @@ files:
|
|
127
127
|
- infrastructure/.brpm
|
128
128
|
- infrastructure/config/customer_include.rb
|
129
129
|
- infrastructure/config/server.yml
|
130
|
+
- infrastructure/create_output_file.rb
|
130
131
|
- infrastructure/log.html
|
131
132
|
- infrastructure/module_template/Gemfile
|
132
133
|
- infrastructure/module_template/Rakefile
|
@@ -154,6 +155,7 @@ files:
|
|
154
155
|
- infrastructure/silent_install_options_upgrade_4.6.txt
|
155
156
|
- infrastructure/smtp_settings.rb
|
156
157
|
- infrastructure/test_separate_process.rb
|
158
|
+
- infrastructure/write_to.rb
|
157
159
|
- lib/brpm_auto.rb
|
158
160
|
- lib/brpm_script_executor.rb
|
159
161
|
- lib/logging/brpm_logger.rb
|
@@ -170,7 +172,6 @@ files:
|
|
170
172
|
- lib/utilities.rb
|
171
173
|
- lib/version_control/git.rb
|
172
174
|
- lib/version_control/svn.rb
|
173
|
-
- lib/write_to.rb
|
174
175
|
- module.gemspec
|
175
176
|
- tests/all_params_spec.rb
|
176
177
|
- tests/brpm_auto_spec.rb
|
data/lib/write_to.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
write_to(File.read(BrpmAuto.logger.step_run_log_file_path)) unless BrpmAuto.logger.nil? or ! BrpmAuto.logger.is_a?(BrpmLogger)
|