brpm_module_bladelogic 0.1.30 → 0.1.31

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
- M2QwMWU0NTQ2NGJiZTUzNjAxY2JiZmY3YjY1MmI2NzUyYmNlYjczMA==
4
+ ZTk3YmFiOWE3ODc3NzhmYWE0ZDFjYjJkMzk4OTViOTRmYWI0NWQyMA==
5
5
  data.tar.gz: !binary |-
6
- NTNiMmExZGU3MzJhMWFjZWE0NTg2OWFlNjg0ODJhNWEwMDYwNWE3Zg==
6
+ MDliODBiMGY2ZDM0OWM3Nzc5NDg5ZjNiZmQ3OTU0MTMwNTEzNDRlYw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OGY1ZDA4ODg4NWE3ZDQyODczN2NhN2E2YzQ4Mzk2OGEyMTg4ZGRjMjAwYWNk
10
- ZTg3OWMxOWQ2MzJmMGQ0OWRiZWRhNjcwYWExOThlOWU1NjBhOGQ0NGZkMWI0
11
- NmY4ZTRmMjU5M2I4MDU2ZmIxY2MwMGQ5MzBlMWNhMTY0Mzc1MWQ=
9
+ MmQ2MTJlYWE1NjcxZmUzMDJjMzk4YWIzOWRhZTY4YzkzNDMwOGNlZDQ4MzY3
10
+ OGYzMjcyMTcyNjk1ZjNiZjAwNGQ4MjQ0YWY3NjEwY2NlM2IzOGQ4YzdhYWIx
11
+ MTVkMTlmNmM3ZWY2NjJlN2YwOGJlYTAxMGVjYzZjM2Y3NGEwZmQ=
12
12
  data.tar.gz: !binary |-
13
- NDBjYTA1NDU5MWU0MzJiMjBjMzkyYzBmNWJkZDlkMTJkMGNjOGUyMWI5MTM2
14
- Y2NhNmZmZGJkM2Y4Njc5MTJjMGYxNzdiNzRlYzZlNGQ2NWUyNDkzMWFjZjQ3
15
- YmMwYjkzZGYyYTZjOTY1ZGMxZjk5MmNkZTdkYTA3NmRmZTA5NGU=
13
+ YzhmYjI3MWFlN2RhYWQxMzliYWYwMzkwNWQwNWVkZDZlMDE2ZTAzMjVmZTM0
14
+ MzZiNjFhNzBkMDgzYWZlYWQ2NmJiNTE2OWM3MjYxMzIwZDkwZTAzM2MyZTVl
15
+ YjM2ZTg5ODk1ZWE4NzRjNGUzZDUxODQ0NTVlMTVhMWJiMzJkNmI=
@@ -139,7 +139,7 @@ BrpmAuto.log("Checking if the job finished successfully...")
139
139
  had_errors = bsa_soap_client.job_run.get_job_run_had_errors({:job_run_key => job_run_key})
140
140
 
141
141
  had_errors ? BrpmAuto.log("WARNING: The job had errors!") : BrpmAuto.log("The job had no errors.")
142
- pack_response "job_status", had_errors ? "The job had errors" : "The job ran successfully"
142
+ BrpmAuto.pack_response "job_status", had_errors ? "The job had errors" : "The job ran successfully"
143
143
 
144
144
  BrpmAuto.log("Retrieving the job run id from the job run key...")
145
145
  job_run_id = bsa_soap_client.job_run.job_run_key_to_job_run_id({:job_run_key => job_run_key})
@@ -192,7 +192,7 @@ servers_with_logs = logs.group_by { |log| log[0] }
192
192
 
193
193
  failed_servers_with_logs = servers_with_logs.select { |key, value| value.select{|log| log[5] == "Error" }.count > 0}
194
194
 
195
- pack_response "results_summary", "#{servers_with_logs.count - failed_servers_with_logs.count}/#{servers_with_logs.count} servers were successful"
195
+ BrpmAuto.pack_response "results_summary", "#{servers_with_logs.count - failed_servers_with_logs.count}/#{servers_with_logs.count} servers were successful"
196
196
 
197
197
  table_data = [[' ', 'Server', 'Simulate', 'Stage', 'Commit']]
198
198
  counter = 0
@@ -221,8 +221,8 @@ servers_with_logs.each do |key, logs|
221
221
  table_data << [counter, server, simulate, stage, commit]
222
222
  end
223
223
 
224
- pack_response "results", { :perPage => 10, :totalItems => table_data.count - 1, :data => table_data }
224
+ BrpmAuto.pack_response "results", { :perPage => 10, :totalItems => table_data.count - 1, :data => table_data }
225
225
 
226
- pack_response "results_link", results_full_path
226
+ BrpmAuto.pack_response "results_link", results_full_path
227
227
 
228
228
  raise "The Deploy job had errors!" if had_errors
data/config.yml CHANGED
@@ -1,7 +1,7 @@
1
1
  dependencies:
2
2
  - brpm_module_brpm
3
3
 
4
- version: 0.1.30
4
+ version: 0.1.31
5
5
 
6
6
  friendly_name: Blade
7
7
  author: Niek Bartholomeus
@@ -3,7 +3,6 @@ require "brpm_script_executor"
3
3
 
4
4
  def setup_brpm_auto
5
5
  FileUtils.mkdir_p "/tmp/brpm_content"
6
- create_symlink_to_gemset
7
6
 
8
7
  BrpmAuto.setup( get_default_params.merge!(get_integration_params_for_bladelogic) )
9
8
 
@@ -82,14 +81,3 @@ def cleanup_request_params
82
81
  request_params_file = "/tmp/brpm_content/request_data.json"
83
82
  File.delete(request_params_file) if File.exist?(request_params_file)
84
83
  end
85
-
86
- def pack_response key, value
87
- BrpmAuto.log "pack_response: #{key}: #{value}"
88
- end
89
-
90
- def create_symlink_to_gemset
91
- module_name = File.basename(File.expand_path("#{File.dirname(__FILE__)}/.."))
92
- symlink = "#{ENV["GEM_HOME"]}/gems/#{module_name}-999.0.0"
93
- FileUtils.rm(symlink) if File.exists?(symlink)
94
- FileUtils.ln_s(File.expand_path("#{File.dirname(__FILE__)}/.."), symlink)
95
- end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brpm_module_bladelogic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.30
4
+ version: 0.1.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - Niek Bartholomeus
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-04 00:00:00.000000000 Z
11
+ date: 2015-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: brpm_content_framework