Repository is archived
No commit activity in last 3 years
No release in over 3 years
Chef reports generated to a channel in Slack
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
>= 0
 Project Readme

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.