This uses the ruby_build provider for Mastodon, installing Ruby 2.4.1 currently. It also updates some other cookbooks and the runlists.
86 lines
2.8 KiB
Markdown
86 lines
2.8 KiB
Markdown
# Poise-Build-Essential Cookbook
|
||
|
||
[](https://travis-ci.org/poise/poise-build-essential)
|
||
[](https://rubygems.org/gems/poise-build-essential)
|
||
[](https://supermarket.chef.io/cookbooks/poise-build-essential)
|
||
[](https://codecov.io/github/poise/poise-build-essential)
|
||
[](https://gemnasium.com/poise/poise-build-essential)
|
||
[](https://www.apache.org/licenses/LICENSE-2.0)
|
||
|
||
A [Chef](https://www.chef.io/) cookbook to install a C compiler and build tools..
|
||
|
||
## Quick Start
|
||
|
||
To install a C compiler:
|
||
|
||
```ruby
|
||
include_recipe 'poise-build-essential'
|
||
```
|
||
|
||
Or to install using a resource and at compile time:
|
||
|
||
```ruby
|
||
poise_build_essential 'build_essential' do
|
||
action :nothing
|
||
end.run_action(:install)
|
||
```
|
||
|
||
## Recipes
|
||
|
||
* `poise-build-essential::default` – Install a C compiler and build tools.
|
||
|
||
## Attributes
|
||
|
||
* `node['poise-build-essential']['action']` – Action to use. One of install,
|
||
upgrade, or remove. *(default: install)*
|
||
* `node['poise-build-essential']['allow_unsupported_platform']` – Whether or not
|
||
to raise an error on unsupported platforms. *(default: false)*
|
||
|
||
## Resources
|
||
|
||
### `poise_build_essential`
|
||
|
||
The `poise_build_essential` resource installs a C compiler and build tools.
|
||
|
||
```ruby
|
||
poise_build_essential 'build_essential' do
|
||
allow_unsupported_platform true
|
||
end
|
||
```
|
||
|
||
#### Actions
|
||
|
||
* `:install` – Install a C compiler. *(default)*
|
||
* `:upgrade` – Install a C compiler using `package action :ugprade` rules.
|
||
* `:remove` – Remove a C compiler.
|
||
|
||
#### Properties
|
||
|
||
* `allow_unsupported_platform` – Whether or not to raise an error on unsupported
|
||
platforms. *(default: false)*
|
||
|
||
## Sponsors
|
||
|
||
Development sponsored by [SAP](https://www.sap.com/).
|
||
|
||
The Poise test server infrastructure is sponsored by [Rackspace](https://rackspace.com/).
|
||
|
||
## License
|
||
|
||
Some code copyright 2008-2017, Chef Software, Inc. Used under the terms of the
|
||
Apache License, Version 2.0.
|
||
|
||
Copyright 2017, Noah Kantrowitz
|
||
|
||
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.
|