summaryrefslogtreecommitdiff
path: root/lib/oxidized/source/csv.rb
diff options
context:
space:
mode:
authormbakerbp <michael.baker@bulletproof.net>2017-01-24 07:40:36 +0800
committermbakerbp <michael.baker@bulletproof.net>2017-01-24 07:40:36 +0800
commit737ffa54eb42537f9fbd6bb6a2a708507fd802e3 (patch)
tree15c1fe9f7d3588f16284a08d4ad1ee719e900dc8 /lib/oxidized/source/csv.rb
parentda69f568422ad918e734ecbc0feef15b1b7cac03 (diff)
Update
Diffstat (limited to 'lib/oxidized/source/csv.rb')
-rw-r--r--lib/oxidized/source/csv.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/oxidized/source/csv.rb b/lib/oxidized/source/csv.rb
index 757acf4..dc246ab 100644
--- a/lib/oxidized/source/csv.rb
+++ b/lib/oxidized/source/csv.rb
@@ -19,6 +19,7 @@ class CSV < Source
def load
nodes = []
+ crypto = GPGME::Crypto.new
file = (@cfg.gpg == 'false') ? open(File.expand_path @cfg.file) : crypto.decrypt(File.open(@cfg.file))
open(file).each_line do |line|
next if line.match(/^\s*#/)