Method: Qops::Environment.notifiers
- Defined in:
- lib/qops/environment.rb
.notifiers ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/qops/environment.rb', line 13 def self.notifiers return @_notifiers unless @_notifiers.nil? if File.exist?('config/quandl/slack.yml') @_notifiers ||= Quandl::Slack.autogenerate_notifiers else @_notifiers = false print_with_colour('Slack notifications disabled. Could not find slack configuration at: config/quandl/slack.yml', :warning) end rescue NoMethodError => e print_with_colour("Slack notifications disabled due to an error. #{e}", :warning) end |