Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

tinyspeck/chef-handler-slack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Richard Crowley
Oct 29, 2019
f3a24e6 · Oct 29, 2019

History

21 Commits
Mar 11, 2015
Sep 5, 2014
Sep 5, 2014
Sep 5, 2014
Sep 5, 2014
Oct 29, 2019

Repository files navigation

Chef::Handler::SlackReporting

Distribute this Ruby class via a Chef file resource and activate it with a Chef resource to this effect:

chef_handler 'Chef::Handler::SlackReporting' do
  action :nothing
  arguments [
    channel_id: channel_id,
    token: token,
    workspace_id: workspace_id,
  ]
  source '/usr/local/lib/chef-handler-slack.rb'
end.run_action(:enable)

This sample code is provided as-is for the benefit of the community that uses both Chef and Slack. Since Slack made this code available we've evolved the code considerably but in ways that don't make sense to incorporate into an open-source offering. Nonetheless, this basic starting point still applies so take it and run with it.