Sha256: 5345f52a32ffbf1df71279e318d17d4d2fd993776f924a541f2cdc805a5c667d
Contents?: true
Size: 530 Bytes
Versions: 7
Compression:
Stored size: 530 Bytes
Contents
require "base64" module TerraspacePluginAzurerm::Interfaces::Helper class Secret extend Memoist include TerraspacePluginAzurerm::Logging def initialize(mod, options={}) @mod, @options = mod, options @base64 = options[:base64] end # opts: version, vault def fetch(name, opts={}) value = fetcher.fetch(name, opts) value = Base64.strict_encode64(value).strip if @base64 value end def fetcher Fetcher.new(@mod, @options) end memoize :fetcher end end
Version data entries
7 entries across 7 versions & 1 rubygems