chef-handler-scrutinizer installs/configures a chef_handler which triggers a inspection on scrutinizer-ci on successful Chef run.
node[chef_handler]["handler_path"] - location to drop off handlers directory, default is
node['scrutinizer']['chef-handler']['api_url'] - Scrutinizer API Endpoint, default is
node['scrutinizer']['chef-handler']['access_token'] - Scrutinizer Access Token, required, default is
node['scrutinizer']['chef-handler']['type'] - Repository type, g = github / b = bitbucket / nil = git, default is
node['scrutinizer']['chef-handler']['repository_name'] - Repository name, default is
node['scrutinizer']['chef-handler']['branch'] - Repository branch, default is
node['scrutinizer']['chef-handler']['source_reference'] - Git reference, default is
node['scrutinizer']['chef-handler']['title'] - Title to report on Scrutinizer, default is
Chef client run succeeded on X deployed with X on X/X.
node['scrutinizer']['chef-handler']['config'] - Path to custom Scrutinizer YML config, default is
Put the recipe
chef-handler-scrutinizer at the start of the node's run list to make sure that custom handlers are dropped off early on in the Chef run and available for later recipes.
- Ruby >= 1.9
This cookbook depends on the following community cookbooks.
The following platforms are supported and tested:
- Debian 7.x
Fork the repository from GitHub.
Clone your fork to your local machine:
$ git clone firstname.lastname@example.org:USER/chef-handler-scrutinizer.git
Create a git branch
$ git checkout -b my_bug_fix
Make your changes/patches/fixes, committing appropriately
Run the tests:
Push your changes to GitHub
Open a Pull Request
chef-handler-scrutinizer is on Travis CI which tests against multiple Chef and Ruby versions.
The following Rake tasks are provided for automated testing of the cookbook:
rake rubocop- Run [RuboCop] style and lint checks
rake foodcritic- Run [Foodcritic] lint checks
rake integration- Run [Test Kitchen] integration tests (provisions a Vagrant VM using this cookbook and then tests the infrastructure with [Serverspec])
rake test- Run all tests
License and Authors
- Author:: Achim Rosenhagen (email@example.com)
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.