cookbook 'bazel', '~> 0.4.2'
bazel (8) Versions 0.4.2 Follow0
Installs/Configures bazel
cookbook 'bazel', '~> 0.4.2', :supermarket
knife supermarket install bazel
knife supermarket download bazel
bazel Cookbook
Installs/Configures Bazel
Usage
bazel::default Recipe
Just include bazel
in your node's run_list
:
{ "name":"my_node", "run_list": [ "recipe[bazel]" ] }
Custom Resources
bazel_installation('bazel') do version '0.3.0' action :create end
Requirements
chef
Chef 12.5+
cookbooks
- build-essential
- java
- poise-python
- zip
- apt
- homebrew
Attributes
bazel::default
Key | Type | Description | Default |
---|---|---|---|
['bazel']['version'] |
String | Bazel version to install | 0.3.0 |
['bazel']['prefix'] |
String | installation prefix | /usr/local |
['bazel']['installation_method'] |
String | how to install Bazel | package |
Valid values for installation_method
are:
script
: Installs Bazel with an installer script
package
: Installs Bazel with a package management system in the package
homebrew
: More specifically than package
, installs Bazel with homebrew
apt
: More specifically than package
, installs Bazel with apt
Recipes
bazel::bazel
Installs Bazel and its minimal dependencies
bazel::default
Installs other recommended tools in addition to bazel::bazel
.
Resources
bazel_installation
Automatically selects a right installation method and installs Bazel.
Example
bazel_installation('bazel') do version '0.3.0' action :create end
Properties
-
version
- Bazel version to install
bazel_installation_package
Automatcially selects a right package management system and installs Bazel with it.
Example
bazel_installation_package('bazel') do version '0.3.0' action :create end
Properties
-
version
- Bazel version to install
bazel_installation_homebrew
Installs bazel with homebrew
bazel_installation_apt
Installs bazel with apt
bazel_installation_script
Installs bazel with an installer scirpt.
Example
bazel_installation_script('bazel') do version '0.3.0' action :create end
Properties
-
version
- Verion of Bazel to install -
prefix
- installation prefix -
installer_uri
- URI to the installer -
installer_checksum
- SHA256 sum of the installer
Contributing
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write chefspec for the feature (if applicable)
- Write your change
- Write serverspec for the feature (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
License and Authors
Copyright 2016 Gengo Inc.
BSD 3-Clause license
Dependent cookbooks
build-essential >= 0.0.0 |
java >= 0.0.0 |
poise-python >= 0.0.0 |
zip >= 0.0.0 |
apt >= 0.0.0 |
homebrew >= 0.0.0 |
Contingent cookbooks
Collaborator Number Metric
0.4.2 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.4.2 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.4.2 failed this metric
FC066: Ensure chef_version is set in metadata: bazel/metadata.rb:1
FC069: Ensure standardized license defined in metadata: bazel/metadata.rb:1
FC121: Cookbook depends on cookbook made obsolete by Chef 14: bazel/metadata.rb:1
FC122: Use the build_essential resource instead of the recipe: bazel/recipes/cxx.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.4.2 passed this metric
Testing File Metric
0.4.2 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.4.2 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.4.2 failed this metric
0.4.2 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.4.2 failed this metric
FC066: Ensure chef_version is set in metadata: bazel/metadata.rb:1
FC069: Ensure standardized license defined in metadata: bazel/metadata.rb:1
FC121: Cookbook depends on cookbook made obsolete by Chef 14: bazel/metadata.rb:1
FC122: Use the build_essential resource instead of the recipe: bazel/recipes/cxx.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.4.2 passed this metric
Testing File Metric
0.4.2 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.4.2 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.4.2 failed this metric
FC069: Ensure standardized license defined in metadata: bazel/metadata.rb:1
FC121: Cookbook depends on cookbook made obsolete by Chef 14: bazel/metadata.rb:1
FC122: Use the build_essential resource instead of the recipe: bazel/recipes/cxx.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.4.2 passed this metric
Testing File Metric
0.4.2 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.4.2 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.4.2 failed this metric
0.4.2 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