Class: Kamal::Secrets::Adapters::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/kamal/secrets/adapters/base.rb

Direct Known Subclasses

Bitwarden, LastPass, OnePassword, Test

Instance Method Summary collapse

Instance Method Details

#fetch(secrets, account:, from: nil) ⇒ Object



4
5
6
7
8
9
# File 'lib/kamal/secrets/adapters/base.rb', line 4

def fetch(secrets, account:, from: nil)
  check_dependencies!
  session = ()
  full_secrets = secrets.map { |secret| [ from, secret ].compact.join("/") }
  fetch_secrets(full_secrets, account: , session: session)
end