hiera-housekeeper 0.14 → 0.15
Sign up to get free protection for your applications and to get access to all the features.
@@ -136,6 +136,8 @@ class Hiera
|
|
136
136
|
ENV["GNUPGHOME"] = gnupghome
|
137
137
|
debug("GNUPGHOME is #{ENV['GNUPGHOME']}")
|
138
138
|
|
139
|
+
# https://github.com/ueno/ruby-gpgme/issues/31
|
140
|
+
GPGME::gpgme_set_engine_info(GPGME::PROTOCOL_OpenPGP, '/usr/bin/gpg', nil)
|
139
141
|
ctx = GPGME::Ctx.new({:passphrase_callback => method(:passfunc)})
|
140
142
|
|
141
143
|
if !ctx.keys.empty?
|
@@ -146,8 +148,8 @@ class Hiera
|
|
146
148
|
txt = ctx.decrypt(raw)
|
147
149
|
rescue GPGME::Error::DecryptFailed
|
148
150
|
warn("Warning: GPG Decryption failed, check your GPG settings")
|
149
|
-
rescue
|
150
|
-
warn("Warning: General exception decrypting GPG file")
|
151
|
+
rescue Exception => e
|
152
|
+
warn("Warning: General exception decrypting GPG file : #{e.message}")
|
151
153
|
ensure
|
152
154
|
ENV["GNUPGHOME"] = gnupghome_backup
|
153
155
|
end
|
@@ -177,4 +179,3 @@ class Hiera
|
|
177
179
|
end
|
178
180
|
end
|
179
181
|
end
|
180
|
-
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hiera-housekeeper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.15'
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-07-
|
12
|
+
date: 2014-07-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: hiera
|