Sha256: 9cb3070fff7f8d855922d89cfd85be54b38b8db648d9dc0f7ff5935ba4240773
Contents?: true
Size: 335 Bytes
Versions: 2
Compression:
Stored size: 335 Bytes
Contents
module Kontena::Cli::Stacks module YAML class Opto::Resolvers::Vault < Opto::Resolver def resolve raise RuntimeError, "Missing or empty vault secret name" if hint.to_s.empty? require 'shellwords' Kontena.run("vault read --return #{hint.shellescape}", returning: :result) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kontena-cli-1.1.0 | lib/kontena/cli/stacks/yaml/opto/vault_resolver.rb |
kontena-cli-1.1.0.rc2 | lib/kontena/cli/stacks/yaml/opto/vault_resolver.rb |