kafo 5.0.1 → 5.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kafo/configuration.rb +4 -0
- data/lib/kafo/hook_context.rb +6 -1
- data/lib/kafo/puppet_log_parser.rb +1 -1
- data/lib/kafo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5bb233f06b493ded5dfc032260f4069329eecf431cdfe6c6b93ea20ed7303af
|
4
|
+
data.tar.gz: f8af42dfbbf78ddb16971c776f1e658a7d0aa0306216f7b06ccd984f912c0a96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26c1cde782d8ad9e78f63627223492471b66504efb82491f723ee1a8d9efbd427455fc2219b92eee190217158788b1c42091633dd1a162a6a9e5502c671d4007
|
7
|
+
data.tar.gz: e546068a983e2e6d45cd61e08945eb02903c366f9aebbc03d70bbf90df94af8b74d4d86e4034970c77d9b3bda145981bc9861e64323d84e0f9210c40477f90b9
|
data/lib/kafo/configuration.rb
CHANGED
data/lib/kafo/hook_context.rb
CHANGED
@@ -105,7 +105,7 @@ module Kafo
|
|
105
105
|
self.kafo.config.get_custom_fact(key)
|
106
106
|
end
|
107
107
|
|
108
|
-
# Store
|
108
|
+
# Store any custom fact. This will show up as kafo.scenario.custom.your_fact.
|
109
109
|
# It is possible to use structures such as arrays and hashes besides the
|
110
110
|
# obvious ones such as strings, integers, booleans.
|
111
111
|
#
|
@@ -114,6 +114,11 @@ module Kafo
|
|
114
114
|
self.kafo.config.set_custom_fact(key, value)
|
115
115
|
end
|
116
116
|
|
117
|
+
# Check whether a custom fact exists, regardless of whether or not it has a value.
|
118
|
+
def has_custom_fact?(key)
|
119
|
+
self.kafo.config.has_custom_fact?(key)
|
120
|
+
end
|
121
|
+
|
117
122
|
# Return the id of the current scenario
|
118
123
|
def scenario_id
|
119
124
|
self.kafo.config.scenario_id
|
data/lib/kafo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kafo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0
|
4
|
+
version: 5.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marek Hulan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-08-
|
11
|
+
date: 2020-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|