Class: Legion::CLI::Doctor::CacheCheck

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

Instance Method Summary collapse

Instance Method Details

#nameObject



9
10
11
# File 'lib/legion/cli/doctor/cache_check.rb', line 9

def name
  'Cache backend'
end

#runObject



13
14
15
16
17
18
# File 'lib/legion/cli/doctor/cache_check.rb', line 13

def run
  backend, host, port = read_cache_config
  return Result.new(name: name, status: :skip, message: 'No cache backend configured') if backend.nil?

  check_connection(backend, host, port)
end