soar_sc_core 3.0.2 → 3.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dfd19c51450af833abc4c7842f881c85b06cedb0
4
- data.tar.gz: 161bfc7806a5cfb3442941cd541603cf130b116c
3
+ metadata.gz: 28ce256017213102dc7fcd0b7b35dd03277f6131
4
+ data.tar.gz: f33a6116ca46e1ff2b35a60c54f455cfc76a8a9e
5
5
  SHA512:
6
- metadata.gz: 16949d1454c98b4d60de057cc5f464a0855d346d5f6fe7ad8bc68cf819f39bc9d738f224b81ab6aa7537fd3305a32a3a9cce3cfa9882e70cc7c09053997d0035
7
- data.tar.gz: 553a0b789e4bf4e5ea7177751a0b5f643dd73ecc46971a345934218e7e9b897ea97dc731c9cf6dd3a2c3c77b5e41e6c98bb26482201f8913c42f03b480c19739
6
+ metadata.gz: 9047ae5930055cdfdba4c79cb84542bb4a549ba228fb3a7874ffb18180361f2bbd376ddc1e10f68877b5d63fd5d6874c609c351f22260321636abfbbf73eb0b1
7
+ data.tar.gz: ce7ca02db2bef1d79cc96e7bc6a52fcaa6159e916bc9f741f288a66cb0b613046460d2075625ee2fe41c2218aa9a3049b30c78a89c39dc9c0ef7ee8678faa7c4
@@ -56,23 +56,20 @@ module SoarSc
56
56
  }
57
57
  } unless defined? DEFAULT_AUDITING_CONFIGURATION; DEFAULT_AUDITING_CONFIGURATION.freeze
58
58
 
59
- def self.bootstrap(configuration, initialize_with_identifier = false)
59
+ def self.bootstrap(configuration, external_auditor = nil)
60
60
  begin
61
- merged_configuration = self.merge_configuration_with_auditing_defaults(configuration)
62
- self.validate_auditing_provider_configuration(merged_configuration['auditing'])
63
- if initialize_with_identifier
64
- SoarSc::auditing = SoarSc::Providers.const_get(merged_configuration['auditing']['provider'])
65
- .new(merged_configuration['auditing'],
66
- SoarSc::environment['IDENTIFIER'])
61
+ if external_auditor
62
+ SoarSc::auditing = external_auditor
67
63
  else
68
- SoarSc::auditing = SoarSc::Providers.const_get(merged_configuration['auditing']['provider'])
69
- .new(merged_configuration['auditing'])
64
+ configuration = self.merge_configuration_with_auditing_defaults(configuration)
65
+ self.validate_auditing_provider_configuration(merged_configuration['auditing'])
66
+ SoarSc::auditing = SoarSc::Providers.const_get(merged_configuration['auditing']['provider']).new(merged_configuration['auditing'])
70
67
  SoarSc::auditing.service_identifier = SoarSc::environment['IDENTIFIER']
68
+ SoarStatus::Status.register_detailed_status_provider('auditing',SoarSc::auditing)
71
69
  end
72
70
  self.generate_instance_flow_id
73
71
  self.bootstrap_analytics
74
- SoarStatus::Status.register_detailed_status_provider('auditing',SoarSc::auditing)
75
- merged_configuration
72
+ configuration
76
73
  rescue
77
74
  $stderr.puts 'Failure initializing auditing provider'
78
75
  raise
@@ -1,3 +1,3 @@
1
1
  module SoarScCore
2
- VERSION = "3.0.2"
2
+ VERSION = "3.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soar_sc_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2
4
+ version: 3.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ernst Van Graan
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-03-12 00:00:00.000000000 Z
11
+ date: 2018-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: haml