class ForemanMaintain::Cli::HealthCommand

Public Instance Methods

execute() click to toggle source
# File lib/foreman_maintain/cli/health_command.rb, line 7
def execute
  DependencyGraph.sort(available_checks.map(&:ensure_instance)).each do |check|
    print_check_info(check)
  end
end
filter() click to toggle source
# File lib/foreman_maintain/cli/health_command.rb, line 36
def filter
  if label
    { :label => label }
  else
    { :tags => tags || [:default] }
  end
end
humanized_filter() click to toggle source
# File lib/foreman_maintain/cli/health_command.rb, line 44
def humanized_filter
  if label
    "label #{label_string(filter[:label])}"
  else
    "tags #{filter[:tags].map { |tag| tag_string(tag) }.join}"
  end
end