lib/minke/config/reader.rb in minke-1.5.5 vs lib/minke/config/reader.rb in minke-1.5.6
- old
+ new
@@ -89,19 +89,16 @@
url.type = section['type']
end
end
def read_secure hash
- puts hash.inspect
key_path = ENV['SSL_KEY_PATH'].to_s == '' ? "#{ENV['HOME']}/.ssh" : ENV['SSL_KEY_PATH']
fingerprint = hash['secure']['fingerprint']
value = hash['secure']['value']
locator = Minke::Encryption::KeyLocator.new key_path
key_path = locator.locate_key fingerprint
-
- puts key_path
encrypt = Minke::Encryption::Encryption.new key_path
encrypt.decrypt_string value
end