brpm_content 0.1.24 → 0.1.25
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/modules/framework/config.yml +1 -1
- data/modules/framework/lib/module_installer.rb +10 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NzQ3YTc4OGE4ZTg5Yjk3YzNlN2VmMDkzZGRjNTBiMTg4MjNkODY2MA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Y2MxMzFmZGI1ZjhlZTE1MTZhNDBkNzJmYWVmMzMyY2RhZjIzNDI0Yg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NmQ0MTJkYmM4MmYwZmYxYjcxMTljYjQ3YTE5MWM2MmI2ZDI1NjhkYWRmMDMw
|
10
|
+
NTIwZDI1YzUzMmIwZWZhM2E5NDM5ZGRmMzNlMmQzMTFhM2IxZjc4OGQ0ZWJh
|
11
|
+
YTc0MDA2OTY1ODg2MGM4MWM4MWRiODU3YjlkYzEzMGFhZjBjNjc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Y2QwODA5MjgyYTU3NWZlMTM1MjZhM2JkNDQxZGVhYzVjZDk4MzExZDgyMDAx
|
14
|
+
Y2NjMzA5NjU1NTE4ZmI0MjNkZGViMDA5NDNhMTBjZDFkNTU3ZDdhZGEyYjIx
|
15
|
+
NjA0ZGFlZjc2MzBkMzU5NmQxYjM0MGYzNmUyZDBkM2M2OTdiYTY=
|
@@ -165,12 +165,17 @@ class ModuleInstaller
|
|
165
165
|
match = auto_script_config_content.match(/###\n(.*)\n###/m)
|
166
166
|
input_params_content = match ? "#{match[1]}\n" : ""
|
167
167
|
|
168
|
-
|
169
|
-
|
168
|
+
if automation_type == "Automation"
|
169
|
+
matches = input_params_content.scan(/^# {0,1}(.*)/) || []
|
170
|
+
input_params_yaml = YAML.load(matches.join("\n")) || {}
|
170
171
|
|
171
|
-
|
172
|
+
input_params_content += get_input_params_template(input_params_yaml)
|
173
|
+
end
|
172
174
|
|
173
|
-
wrapper_script_content = "
|
175
|
+
wrapper_script_content = ""
|
176
|
+
unless input_params_content.empty?
|
177
|
+
wrapper_script_content = "###\n#{input_params_content}###\n"
|
178
|
+
end
|
174
179
|
|
175
180
|
auto_script_config = YAML.load(auto_script_config_content) || {}
|
176
181
|
|
@@ -205,7 +210,7 @@ class ModuleInstaller
|
|
205
210
|
script["content"] = wrapper_script_content
|
206
211
|
script["integration_id"] = integration_server["id"] if auto_script_config["integration_server_type"] and integration_server
|
207
212
|
if automation_type == "ResourceAutomation"
|
208
|
-
script["
|
213
|
+
script["unique_identifier"] = auto_script_config["resource_id"] || auto_script_name
|
209
214
|
script["render_as"] = auto_script_config["render_as"] || "List"
|
210
215
|
end
|
211
216
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brpm_content
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.25
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Niek Bartholomeus
|
8
8
|
autorequire:
|
9
9
|
bindir: modules/framework/bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|