# File lib/foreman_maintain/cli/health_command.rb, line 7 def execute available_checks.each { |check| print_check_info(check) } end
# File lib/foreman_maintain/cli/health_command.rb, line 45 def filter if label { :label => label } else { :tags => tags || [:default] } end end
# File lib/foreman_maintain/cli/health_command.rb, line 53 def humanized_filter if label "label #{label_string(filter[:label])}" else "tags #{filter[:tags].map { |tag| tag_string(tag) }.join}" end end
# File lib/foreman_maintain/cli/health_command.rb, line 11 def print_check_info(check) desc = "#{label_string(check.label)} #{check.description}".ljust(80) tags = check.tags.map { |t| tag_string(t) }.join(' ').to_s puts "#{desc} #{tags}" end