Class: WCC::SyslogNotificator

Inherits:
Object
  • Object
show all
Defined in:
lib/wcc/syslog.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSyslogNotificator

Returns a new instance of SyslogNotificator.



4
5
# File 'lib/wcc/syslog.rb', line 4

def initialize
end

Class Method Details

.parse_conf(conf) ⇒ Object



11
# File 'lib/wcc/syslog.rb', line 11

def self.parse_conf(conf); {} end

.shut_downObject



13
# File 'lib/wcc/syslog.rb', line 13

def self.shut_down; end

Instance Method Details

#notify!(data) ⇒ Object



7
8
9
# File 'lib/wcc/syslog.rb', line 7

def notify!(data)
	system("logger -t '#{data.tag}' 'Change at #{data.site.uri.to_s} (tag #{data.site.id}) detected'")
end