hiera-redis 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/hiera/backend/redis_backend.rb +6 -1
- metadata +7 -7
@@ -2,7 +2,7 @@ class Hiera
|
|
2
2
|
module Backend
|
3
3
|
class Redis_backend
|
4
4
|
|
5
|
-
VERSION="1.0.
|
5
|
+
VERSION="1.0.3"
|
6
6
|
|
7
7
|
attr_reader :redis, :options
|
8
8
|
|
@@ -69,6 +69,7 @@ class Hiera
|
|
69
69
|
end
|
70
70
|
end
|
71
71
|
|
72
|
+
Hiera.debug "answer is %s" % answer.inspect
|
72
73
|
answer
|
73
74
|
end
|
74
75
|
|
@@ -116,6 +117,10 @@ class Hiera
|
|
116
117
|
Hiera.warn('Cannot connect to Redis server')
|
117
118
|
raise e unless options.has_key?(:soft_connection_failure)
|
118
119
|
nil
|
120
|
+
rescue Errno::ENOENT => e
|
121
|
+
Hiera.warn('Cannot connect to Redis server')
|
122
|
+
raise e unless options.has_key?(:soft_connection_failure)
|
123
|
+
nil
|
119
124
|
end
|
120
125
|
end
|
121
126
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hiera-redis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,24 +9,24 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2014-04-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
15
|
+
name: redis
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - ! '>='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: '
|
21
|
+
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
none: false
|
26
26
|
requirements:
|
27
|
-
- -
|
27
|
+
- - ! '>='
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '
|
29
|
+
version: '0'
|
30
30
|
description: Allows hiera functions to pull data from a Redis database.
|
31
31
|
email: heira-redis@reliantsecurity.com
|
32
32
|
executables: []
|