Class: RefreshVaultTokens
- Inherits:
-
ApplicationJob
- Object
- ApplicationJob
- RefreshVaultTokens
- Defined in:
- app/jobs/refresh_vault_tokens.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.wait_time ⇒ Object
4 5 6 |
# File 'app/jobs/refresh_vault_tokens.rb', line 4 def self.wait_time (SETTINGS&.[](:foreman_vault)&.[](:refresh_tokens_wait_time) || 30).minutes end |
Instance Method Details
#humanized_name ⇒ Object
22 23 24 |
# File 'app/jobs/refresh_vault_tokens.rb', line 22 def humanized_name _('Refresh Vault tokens') end |
#perform ⇒ Object
14 15 16 |
# File 'app/jobs/refresh_vault_tokens.rb', line 14 def perform VaultConnection.with_valid_token.each(&:perform_renew_token) end |