Sha256: 4e2cbbfc74286f609310e253fac80513e9b7958c16caa6d2ad126d01fac7c4a6
Contents?: true
Size: 409 Bytes
Versions: 40
Compression:
Stored size: 409 Bytes
Contents
require 'cloud66_agent/utils/server' module Cloud66 module Commands class Fail2ban def self.perform(is_banned, ip_address, attack, port) data = { is_banned: is_banned, ip_address: ip_address, attack: attack, port: port } Utils::Server.send_fail2ban(data) rescue => exc $logger.error "Command \"fail2ban\" failed: #{exc.message}" exit -1 end end end end
Version data entries
40 entries across 40 versions & 1 rubygems