module Aua::Agents::StandardMiteClient KNOWN_CLIENTS = %w(git2mite Mite-on-rails mite-rb jmite Redmine2mite Mantis2mite Billomat hearttp centralstationcrm mighty-mite-statistics) MITE_STANDARD = /^mite\.([a-z]+)/ def self.extend?(agent) KNOWN_CLIENTS.include?(agent.app) || agent.app =~ MITE_STANDARD end def type return :HttpChecker if app == "hearttp" :ApiClient end def name @name ||= app.gsub(/\./, "-").to_sym end def version return versions[2] if app == "mite.net" super || version_of(app) end end