Class: WCC::SyslogNotificator
- Inherits:
-
Object
- Object
- WCC::SyslogNotificator
- Defined in:
- lib/wcc/syslog.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ SyslogNotificator
constructor
A new instance of SyslogNotificator.
- #notify!(data) ⇒ Object
Constructor Details
#initialize ⇒ SyslogNotificator
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_down ⇒ Object
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 |