cookbook 'webhook', '~> 0.2.0'
webhook (2) Versions 0.2.0 Follow2
Installs/configures Webhook
cookbook 'webhook', '~> 0.2.0', :supermarket
knife supermarket install webhook
knife supermarket download webhook
Webhook Cookbook
A cookbook for installing and configuring the various components of
Webhook.
Requirements
See each recipe's notes below for platform-specific limitations.
Usage
This cookbook can be implemented either by calling its resource directly, or
adding the recipes that wrap it to your run_list.
Recipes
default
cli
Installs Node.js and calls the webhook_cli resource to install the Webhook CLI.
Due to current limitations of the nodejs cookbook, this recipe is Linux-only.
app
Calls the webhook_app resource to install the (beta) Webhook GUI app.
The app is distributed only for OS X and Windows, so this recipe is limited to
those platforms. Package upgrade and removal on both platforms is wonky at best
and unavailable to Chef at worst, so the best way for now to do either action
is manually.
Attributes
default
Attribute | Default | Description |
---|---|---|
node['webhook']['cli']['version'] |
nil | Install a specific version of the Webhook CLI instead of the latest |
node['webhook']['cli']['grunt_version'] |
nil | Install a specific version of Grunt instead of the latest |
node['webhook']['app']['package_url'] |
nil | Grab the Webhook app package from a specific URL |
Resources
webhook_cli
Wraps the installation of Grunt and the Webhook CLI NPM packages into a single
resource.
Syntax:
webhook_cli 'webhook' do
version '1.2.3'
grunt_version '4.5.6'
action :install
end
Actions:
Action | Description |
---|---|
:install |
Install the Webhook CLI (default) |
:uninstall |
Uninstall the CLI |
Attributes:
Attribute | Default | Description |
---|---|---|
version |
'latest' |
Version of the wh package to install |
grunt_version |
'latest' |
Version of the Grunt dep to install |
webhook_app
Downloads and installs the packaged Webhook app (currently for OS X only).
Syntax:
webhook_app 'webhook' do
package_url 'https://path.to/somewhere'
action :install
end
Actions:
Action | Description |
---|---|
:install |
Install the Webhook app (default) |
Attributes:
Attribute | Default | Description |
---|---|---|
package_url |
nil |
Grab the package from a custom URL |
Providers
webhook_cli
Handles installs/uninstalls of the Webhook CLI, via NPM packages.
webhook_app
Handles installs of the Webhook app, via system packages.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Run style checks and RSpec tests (
bundle exec rake
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
License & Authors
- Author: Jonathan Hartman j@p4nt5.com
Copyright 2014, Jonathan Hartman
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
dmg ~> 2.2 |
nodejs ~> 2.1 |
windows ~> 1.34 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Webhook Cookbook CHANGELOG
v0.2.0 (2014-10-07)
- Add support for the Windows and OS X GUI apps
v0.1.0 (2014-08-25)
- Initial release!
v0.0.1 (2014-08-22)
- Development started
Collaborator Number Metric
0.2.0 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.2.0 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
0.2.0 failed this metric
FC064: Ensure issues_url is set in metadata: webhook/metadata.rb:1
FC065: Ensure source_url is set in metadata: webhook/metadata.rb:1
FC066: Ensure chef_version is set in metadata: webhook/metadata.rb:1
FC069: Ensure standardized license defined in metadata: webhook/metadata.rb:1
FC121: Cookbook depends on cookbook made obsolete by Chef 14: webhook/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.2.0 passed this metric
Testing File Metric
0.2.0 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
0.2.0 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
0.2.0 failed this metric
0.2.0 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
0.2.0 failed this metric
FC064: Ensure issues_url is set in metadata: webhook/metadata.rb:1
FC065: Ensure source_url is set in metadata: webhook/metadata.rb:1
FC066: Ensure chef_version is set in metadata: webhook/metadata.rb:1
FC069: Ensure standardized license defined in metadata: webhook/metadata.rb:1
FC121: Cookbook depends on cookbook made obsolete by Chef 14: webhook/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.2.0 passed this metric
Testing File Metric
0.2.0 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
0.2.0 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
0.2.0 failed this metric
FC065: Ensure source_url is set in metadata: webhook/metadata.rb:1
FC066: Ensure chef_version is set in metadata: webhook/metadata.rb:1
FC069: Ensure standardized license defined in metadata: webhook/metadata.rb:1
FC121: Cookbook depends on cookbook made obsolete by Chef 14: webhook/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.2.0 passed this metric
Testing File Metric
0.2.0 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
0.2.0 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
0.2.0 failed this metric
0.2.0 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