Module: ForemanVault::HostExtensions

Extended by:
ActiveSupport::Concern
Defined in:
app/models/concerns/foreman_vault/host_extensions.rb

Instance Method Summary collapse

Instance Method Details

#vault_auth_methodObject



15
16
17
# File 'app/models/concerns/foreman_vault/host_extensions.rb', line 15

def vault_auth_method
  VaultAuthMethod.new(self)
end

#vault_connectionObject



19
20
21
22
23
# File 'app/models/concerns/foreman_vault/host_extensions.rb', line 19

def vault_connection
  return unless vault_connection_name

  ::VaultConnection.find_by(name: vault_connection_name)
end

#vault_policyObject



11
12
13
# File 'app/models/concerns/foreman_vault/host_extensions.rb', line 11

def vault_policy
  VaultPolicy.new(self)
end