Sha256: 64d915bbf58f82fa1d993376e648146a81d5a67e6860c2ce7611f3dc36d450de
Contents?: true
Size: 443 Bytes
Versions: 2
Compression:
Stored size: 443 Bytes
Contents
# frozen_string_literal: true require_relative './base' module RakeSecrets module Storage class InMemory < Base def initialize(persistence = {}) super() @persistence = persistence end def store(path, content) @persistence[path] = content end def remove(path) @persistence.delete(path) end def get(path) @persistence[path] end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rake_secrets-0.1.0.pre.3 | lib/rake_secrets/storage/in_memory.rb |
rake_secrets-0.1.0.pre.2 | lib/rake_secrets/storage/in_memory.rb |