hiera-redis 0.0.5 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,14 +2,17 @@ class Hiera
2
2
  module Backend
3
3
  class Redis_backend
4
4
 
5
- VERSION="0.0.5"
5
+ VERSION="0.1.0"
6
6
 
7
7
  def initialize
8
8
 
9
9
  require 'redis'
10
10
  Hiera.debug("Hiera Redis backend starting")
11
11
 
12
- @r = Redis.new
12
+ port = Config[:redis][:port] || 6397
13
+ host = Config[:redis][:host] || '127.0.0.1'
14
+
15
+ @r = Redis.new(:host => host, :port => port)
13
16
  end
14
17
 
15
18
  def lookup(key, scope, order_override, resolution_type)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hiera-redis
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
+ - 1
8
9
  - 0
9
- - 5
10
- version: 0.0.5
10
+ version: 0.1.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Adam Kosmin c/o Reliant Security, Inc.
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-02-24 00:00:00 Z
18
+ date: 2012-03-02 00:00:00 Z
19
19
  dependencies: []
20
20
 
21
21
  description: Allows hiera functions to pull data from a Redis database.