Class: Legion::CLI::Doctor::VaultCheck

Inherits:
Object
  • Object
show all
Defined in:
lib/legion/cli/doctor/vault_check.rb

Constant Summary collapse

DEFAULT_HOST =
'localhost'
DEFAULT_PORT =
8200

Instance Method Summary collapse

Instance Method Details

#nameObject



15
16
17
# File 'lib/legion/cli/doctor/vault_check.rb', line 15

def name
  'Vault'
end

#runObject



19
20
21
22
23
24
# File 'lib/legion/cli/doctor/vault_check.rb', line 19

def run
  host, port = read_vault_config
  return Result.new(name: name, status: :skip, message: 'Vault not configured') if host.nil?

  check_vault(host, port)
end