lib/neetob/cli/cloudflare/bot_fight_mode.rb in neetob-0.4.36 vs lib/neetob/cli/cloudflare/bot_fight_mode.rb in neetob-0.4.37
- old
+ new
@@ -17,10 +17,13 @@
zone_id = ZONE_IDS[domain.to_sym]
raise(StandardError, "Domain '#{domain}' not found.") if zone_id.nil?
url = create_url(zone_id, "bot_management")
response = get(url)
- ui.info("Bot fight mode is turned #{response[:result][:fight_mode] ? "on" : "off"}")
+ ui.info(
+ "Bot fight mode is turned #{response[:result][:fight_mode] ?
+ print_success("on") :
+ print_failure("off")}")
end
end
end
end
end