canzea 0.1.141 → 0.1.142

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/audit.rb +9 -0
  3. data/lib/canzea/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 95bd11de2d961dc8199d5f5518184c53a8fc27dd
4
- data.tar.gz: 258a2f824d7c85cd2b1abcb80388e44033e60338
3
+ metadata.gz: c06c4f7e1374e34701e265385aa9e01a9f610dca
4
+ data.tar.gz: da09138150f0058a4c3f52de1a2d70697bb0f50d
5
5
  SHA512:
6
- metadata.gz: ad55a855e9aa555bdaf6fbd8d1636fdd1e2ab6dce1653fab73719de1d788c87079269f00fcb7bd4b66331787ee5e30619ff63a45d22d166241e3a1adf1c7486f
7
- data.tar.gz: 12d6c4d7ed06c335dae494591faa09706a8f487f96d372821f9fb77581a306220c5b4b32098c12b56780aa5bb3f63605eef27245053f5d24099fb52f9a7483c8
6
+ metadata.gz: 7c79fdd31d7367260c7c496184c6d01715af3091a583172d0fe4d56e79836624506c0d1544e9ff52d64fbf2f67e19bcdf715057d9491f2f2120e54290178fa29
7
+ data.tar.gz: 57b024d221fbb34a4e5e6f6b78855cd31de938250f25926c155be5e8d360145737ab1f5b4262b96f83dbf48b6bb97097a5afc1e2acf09352ceb5d7f8034c2d4f
data/lib/audit.rb CHANGED
@@ -28,6 +28,15 @@ class Audit
28
28
  "result" => result
29
29
  }
30
30
  }
31
+ context = {
32
+ "step" => ENV['ES_STEP'],
33
+ "ref" => ENV['ES_REF'],
34
+ "role" => ENV['ES_ROLE'],
35
+ "solution" => ENV['ES_SOLUTION'],
36
+ "action" => ENV['ES_ACTION']
37
+ }
38
+ data['message'][:context] = context
39
+
31
40
  pputs data.to_json
32
41
  File.open(Canzea::config[:logging_root] + '/audit.log', 'a') { |file| file.puts(data.to_json) }
33
42
  end
@@ -1,3 +1,3 @@
1
1
  module Canzea
2
- VERSION = "0.1.141"
2
+ VERSION = "0.1.142"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: canzea
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.141
4
+ version: 0.1.142
5
5
  platform: ruby
6
6
  authors:
7
7
  - Canzea Technologies