cookbook 'chef-handler-scrutinizer', '~> 1.0.1'
chef-handler-scrutinizer (2) Versions 1.0.1 Follow0
Distribute and enable Chef Report handlers for scrutinizer-ci
cookbook 'chef-handler-scrutinizer', '~> 1.0.1', :supermarket
knife supermarket install chef-handler-scrutinizer
knife supermarket download chef-handler-scrutinizer
chef-handler-scrutinizer
chef-handler-scrutinizer installs/configures a chef_handler which triggers a inspection on scrutinizer-ci on successful Chef run.
Attributes
node[chef_handler]["handler_path"]
- location to drop off handlers directory, default is /var/chef/handlers
.
node['scrutinizer']['chef-handler']['api_url']
- Scrutinizer API Endpoint, default is https://scrutinizer-ci.com/api
.
node['scrutinizer']['chef-handler']['access_token']
- Scrutinizer Access Token, required, default is nil
.
node['scrutinizer']['chef-handler']['type']
- Repository type, g = github / b = bitbucket / nil = git, default is nil
.
node['scrutinizer']['chef-handler']['repository_name']
- Repository name, default is nil
.
node['scrutinizer']['chef-handler']['branch']
- Repository branch, default is master
.
node['scrutinizer']['chef-handler']['source_reference']
- Git reference, default is HEAD
.
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 #{node['chef_handler']['handler_path']}/scrutinizer.yml
.
Usage
Put the recipe chef_handler
and 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.
Requirements
- Ruby >= 1.9
Dependencies
This cookbook depends on the following community cookbooks.
- chef_handler
Platform
The following platforms are supported and tested:
- Debian 7.x
Development
- Fork the repository from GitHub.
-
Clone your fork to your local machine:
$ git clone git@github.com:USER/chef-handler-scrutinizer.git
-
Create a git branch
$ git checkout -b my_bug_fix
Write tests
Make your changes/patches/fixes, committing appropriately
Run the tests:
foodcritic
,rubocop
,kitchen test
Push your changes to GitHub
Open a Pull Request
Testing
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 (a.rosenhagen@ffuenf.de)
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
http://www.apache.org/licenses/LICENSE-2.0
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.
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
chef-handler-scrutinizer cookbook CHANGELOG
v1.0.1 (18 May 2015)
- fix handler which returns if chef run succeeds
v1.0.0 (18 May 2015)
- initial public release
Collaborator Number Metric
1.0.1 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
1.0.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
1.0.1 failed this metric
FC064: Ensure issues_url is set in metadata: chef-handler-scrutinizer/metadata.rb:1
FC065: Ensure source_url is set in metadata: chef-handler-scrutinizer/metadata.rb:1
FC066: Ensure chef_version is set in metadata: chef-handler-scrutinizer/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: chef-handler-scrutinizer/metadata.rb:1
FC069: Ensure standardized license defined in metadata: chef-handler-scrutinizer/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
1.0.1 passed this metric
Testing File Metric
1.0.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.0.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
1.0.1 failed this metric
1.0.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
1.0.1 failed this metric
FC064: Ensure issues_url is set in metadata: chef-handler-scrutinizer/metadata.rb:1
FC065: Ensure source_url is set in metadata: chef-handler-scrutinizer/metadata.rb:1
FC066: Ensure chef_version is set in metadata: chef-handler-scrutinizer/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: chef-handler-scrutinizer/metadata.rb:1
FC069: Ensure standardized license defined in metadata: chef-handler-scrutinizer/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
1.0.1 passed this metric
Testing File Metric
1.0.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.0.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
1.0.1 failed this metric
FC065: Ensure source_url is set in metadata: chef-handler-scrutinizer/metadata.rb:1
FC066: Ensure chef_version is set in metadata: chef-handler-scrutinizer/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: chef-handler-scrutinizer/metadata.rb:1
FC069: Ensure standardized license defined in metadata: chef-handler-scrutinizer/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
1.0.1 passed this metric
Testing File Metric
1.0.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.0.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
1.0.1 failed this metric
1.0.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number