brpm_content 0.1.24 → 0.1.25

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
- MGY3NGZjNmVmNWM4YjA3ZjhhOGQzYzZjZTQ3MDAzZjg3N2ZjYjkxYQ==
4
+ NzQ3YTc4OGE4ZTg5Yjk3YzNlN2VmMDkzZGRjNTBiMTg4MjNkODY2MA==
5
5
  data.tar.gz: !binary |-
6
- ZDIzYjM5OTU3ZTRlNDlmYzE5ZDhkNzRhYzJhMTFmZDdiYzZlZGNiYQ==
6
+ Y2MxMzFmZGI1ZjhlZTE1MTZhNDBkNzJmYWVmMzMyY2RhZjIzNDI0Yg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YjI5NDAyNDE4NTRjN2JmOTc1NmEwOTg3MmM5YzQ0ZTlmOWMwZDMyZTYwMGJl
10
- ZDE1NTYzMzhlYWM5MGY4MmVkMTZmMzBiZWI4NjA1YTk3Yjk2NDBmOWIzOWY0
11
- ZmFjNGZjMTU3ZGE0M2U2NDU3ZWQ5NTZhN2ZmYjIzMjI3ODNhMGQ=
9
+ NmQ0MTJkYmM4MmYwZmYxYjcxMTljYjQ3YTE5MWM2MmI2ZDI1NjhkYWRmMDMw
10
+ NTIwZDI1YzUzMmIwZWZhM2E5NDM5ZGRmMzNlMmQzMTFhM2IxZjc4OGQ0ZWJh
11
+ YTc0MDA2OTY1ODg2MGM4MWM4MWRiODU3YjlkYzEzMGFhZjBjNjc=
12
12
  data.tar.gz: !binary |-
13
- ZWIyMTEzYjAzNDQ1OGE2YjJiOGI3Yjk2NzE1NDk2Y2FhYjZkMjdlZmE1YmFl
14
- NWQ3ZWMzZjQyN2EzZjVjMTYxYjFiMTc2ZTMzNWI3NmQ0NGQ1NGUzY2I4MTY2
15
- YzZmYmUxN2Q2YjhiNmE1OTI3MTE3MGE4OTkzMDQ1NzMwNGE1ZDk=
13
+ Y2QwODA5MjgyYTU3NWZlMTM1MjZhM2JkNDQxZGVhYzVjZDk4MzExZDgyMDAx
14
+ Y2NjMzA5NjU1NTE4ZmI0MjNkZGViMDA5NDNhMTBjZDFkNTU3ZDdhZGEyYjIx
15
+ NjA0ZGFlZjc2MzBkMzU5NmQxYjM0MGYzNmUyZDBkM2M2OTdiYTY=
@@ -1,4 +1,4 @@
1
- version: 0.1.24
1
+ version: 0.1.25
2
2
 
3
3
  author: Niek Bartholomeus
4
4
  email: niek.bartholomeus@gmail.com
@@ -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
- matches = input_params_content.scan(/^# {0,1}(.*)/) || []
169
- input_params_yaml = YAML.load(matches.join("\n")) || {}
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
- input_params_content += get_input_params_template(input_params_yaml)
172
+ input_params_content += get_input_params_template(input_params_yaml)
173
+ end
172
174
 
173
- wrapper_script_content = "###\n#{input_params_content}###\n"
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["resource_id"] = auto_script_config["resource_id"] || auto_script_name
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.24
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-19 00:00:00.000000000 Z
11
+ date: 2015-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client