qnotifier 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/lib/plugin.rb +1 -0
- data/lib/qnotifier.rb +3 -2
- data/qnotifier.gemspec +1 -1
- metadata +2 -2
- metadata.gz.sig +1 -2
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/plugin.rb
CHANGED
data/lib/qnotifier.rb
CHANGED
@@ -110,6 +110,7 @@ module Qnotifier
|
|
110
110
|
Qnotifier.log.error "Couldn't process the plugin file #{file}"
|
111
111
|
return
|
112
112
|
end
|
113
|
+
plugin.class_name = class_name
|
113
114
|
plugin.config = @config
|
114
115
|
unless plugin.class.superclass.name == "Qnotifier::Plugin"
|
115
116
|
Qnotifier.log.fatal "Attempted to load a non Qnotifier::Plugin plugin subclass at #{file} - make sure this directory only includes Qnotifier::Plugin subclasses"
|
@@ -124,9 +125,9 @@ module Qnotifier
|
|
124
125
|
plugin.run
|
125
126
|
end
|
126
127
|
rescue RuntimeError => e
|
127
|
-
Qnotifier.log.error "#{class_name} Plugin Error: #{e.message}"
|
128
|
+
Qnotifier.log.error "#{plugin.class_name} Plugin Error: #{e.message}"
|
128
129
|
rescue Errno::ENOENT => e
|
129
|
-
Qnotifier.log.error "#{class_name} Plugin Error: #{e.message}"
|
130
|
+
Qnotifier.log.error "#{plugin.class_name} Plugin Error: #{e.message}"
|
130
131
|
end
|
131
132
|
@alerts.merge!(plugin.alerts) if plugin.alerts
|
132
133
|
@reports.merge!(plugin.reports) if plugin.reports
|
data/qnotifier.gemspec
CHANGED
metadata
CHANGED
metadata.gz.sig
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
�o굃��B�=� �u�1�Æ�o��hi[Ny��Q5[
|
1
|
+
��
|