knife-cloudformation 0.2.0 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +1 -1
- data/lib/knife-cloudformation/cache.rb +6 -7
- data/lib/knife-cloudformation/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06ed7ddbaae0df4f7300893f1e13a5a4868c21bd
|
4
|
+
data.tar.gz: a4be11d9182dec352ba5a4316aaa4bb39dbb1a64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5ed947f9660358c072020a8c63cb4c1df4228bfc2b4f59b6439af4a2f3802f2866359e29706a4d6f3bdf91bd96d4aa2148988ea9f4b24627d34a7a64ec9e5ed
|
7
|
+
data.tar.gz: 0942609dd232d7f2ed5d8e49261882f8d86cd9c13bc958e9c753408daf951cea1fc2bae4fb3089f33f325b96201233053f933a86dc2254516e05814d478edb93
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -2,13 +2,6 @@ require 'digest/sha2'
|
|
2
2
|
require 'thread'
|
3
3
|
require 'knife-cloudformation'
|
4
4
|
|
5
|
-
begin
|
6
|
-
require 'redis-objects'
|
7
|
-
rescue LoadError
|
8
|
-
$stderr.puts 'The `redis-objects` gem is required for Cache support!'
|
9
|
-
raise
|
10
|
-
end
|
11
|
-
|
12
5
|
module KnifeCloudformation
|
13
6
|
# Data caching helper
|
14
7
|
class Cache
|
@@ -23,6 +16,12 @@ module KnifeCloudformation
|
|
23
16
|
type = type.to_sym
|
24
17
|
case type
|
25
18
|
when :redis
|
19
|
+
begin
|
20
|
+
require 'redis-objects'
|
21
|
+
rescue LoadError
|
22
|
+
$stderr.puts 'The `redis-objects` gem is required for Cache support!'
|
23
|
+
raise
|
24
|
+
end
|
26
25
|
@_pid = Process.pid
|
27
26
|
Redis::Objects.redis = Redis.new(args)
|
28
27
|
when :local
|