lib/deputy.rb in deputy-0.1.51 vs lib/deputy.rb in deputy-0.1.52

- old
+ new

@@ -128,9 +128,10 @@ send_report "Deputies.Error", e.message raise e end def self.send_report(group, value, options = {}) + return if config['disabled'] raise "separate #{group} with a ." unless group.split('.',2).size == 2 get "/notify?group=#{CGI.escape group}&value=#{CGI.escape value.to_s}", options end def self.get(path, options = {})