lib/chef/handler/status_notifier.rb in chef-handler-status_notifier-0.5.1 vs lib/chef/handler/status_notifier.rb in chef-handler-status_notifier-0.5.2
- old
+ new
@@ -2,11 +2,11 @@
unless ENV['RSPEC']
require 'chef'
require 'chef/handler'
end
-require 'hipchat'
+
require 'slack-notifier'
class StatusNotifierHandler < Chef::Handler
DEFAULT_FAILED_MESSAGE = '"Failure on #{node.name}: #{run_status.formatted_exception}"'.freeze
@@ -55,10 +55,10 @@
return unless @slack_params[:enabled]
slack.ping '', attachments: [slack_attachment(node_name, status, msg)], channel: @slack_params[:channel], username: @slack_params[:username]
end
def hipchat
- @hipchat ||= HipChat::Client.new(@hipchat_params[:api_token])
+ return {}
end
def slack
@slack ||= Slack::Notifier.new(@slack_params[:webhook_url])
end