diff options
author | mbakerbp <michael.baker@bulletproof.net> | 2017-01-24 07:40:36 +0800 |
---|---|---|
committer | mbakerbp <michael.baker@bulletproof.net> | 2017-01-24 07:40:36 +0800 |
commit | 737ffa54eb42537f9fbd6bb6a2a708507fd802e3 (patch) | |
tree | 15c1fe9f7d3588f16284a08d4ad1ee719e900dc8 /lib/oxidized/source/csv.rb | |
parent | da69f568422ad918e734ecbc0feef15b1b7cac03 (diff) |
Update
Diffstat (limited to 'lib/oxidized/source/csv.rb')
-rw-r--r-- | lib/oxidized/source/csv.rb | 1 |
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*#/) |