Sha256: df8495c8c92fe00e9c66848f5e94e76b5162d1c67769eb8f9734e89394da0d05
Contents?: true
Size: 456 Bytes
Versions: 2
Compression:
Stored size: 456 Bytes
Contents
require "dotgpg/environment/version" require "dotgpg" require "dotenv" class Dotgpg class Environment < Dotenv::Environment def read # use dotgpg here dir = Dotgpg::Dir.closest(@filename) fail "not in a dotgpg directory" unless dir # make a new stringio object to pass in s = StringIO.new dir.decrypt @filename, s # have to rewind, otherwise read doesn't work s.rewind s.read end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dotgpg-environment-0.1.1 | lib/dotgpg/environment.rb |
dotgpg-environment-0.1.0 | lib/dotgpg/environment.rb |