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

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

Instance Method Summary collapse

Instance Method Details

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

Raises:

  • (RuntimeError)


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

def fetch(secrets, account: nil, from: nil)
  raise RuntimeError, "Missing required option '--account'" if requires_account? && .blank?

  check_dependencies!

  session = ()
  fetch_secrets(secrets, from: from, account: , session: session)
end

#requires_account?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/kamal/secrets/adapters/base.rb', line 13

def requires_account?
  true
end