Class: Kamal::Secrets::Adapters::Base
- Inherits:
-
Object
- Object
- Kamal::Secrets::Adapters::Base
show all
- Defined in:
- lib/kamal/secrets/adapters/base.rb
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 = login(account)
full_secrets = secrets.map { |secret| [ from, secret ].compact.join("/") }
fetch_secrets(full_secrets, account: account, session: session)
end
|