cookbook 'bazel', '= 0.1.2'
bazel (8) Versions 0.1.2 Follow0
Installs/Configures bazel
cookbook 'bazel', '= 0.1.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
Foodcritic Metric
0.1.2 passed this metric
0.1.2 passed this metric