Sha256: 6299b97ee39c90575d8e0b0ed3a51a0636fa7ffa2ebbcb1450f8e984a9be690f

Contents?: true

Size: 356 Bytes

Versions: 2

Compression:

Stored size: 356 Bytes

Contents

require 'cloud66_agent/utils/server'

module Cloud66
	module Commands
		class Fail2ban
			def self.perform(is_banned, ip_address)
				data = {
					is_banned: is_banned,
					ip_address: ip_address
				}
				Utils::Server.send_fail2ban(data)
			rescue => exc
				$logger.error "Command \"fail2ban\" failed: #{exc.message}"
				exit -1
			end
		end
	end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cloud66_agent-1.0.1 lib/cloud66_agent/commands/fail2ban.rb
cloud66_agent-1.0.0 lib/cloud66_agent/commands/fail2ban.rb