cookbook 'emacs24', '= 0.5.0'
emacs24 (9) Versions 0.5.0 Follow1
Installs/Configures emacs24
cookbook 'emacs24', '= 0.5.0', :supermarket
knife supermarket install emacs24
knife supermarket download emacs24
emacs24 Cookbook
Download and install GNU Emacs 24.4 from source.
Requirements
Cookbooks
-
apt
-https://supermarket.chef.io/cookbooks/apt
-
build-essential
-https://supermarket.chef.io/cookbooks/build-essential
-
ohai
-https://supermarket.chef.io/cookbooks/ohai
Platforms
The following platforms and versions are tested and supported using Opscode's test-kitchen.
- Debian 7
- Ubuntu 12.04
- Ubuntu 14.04
Attributes
emacs24::compile
<table>
<tr>
<th>Key</th>
<th>Type</th>
<th>Description</th>
<th>Default</th>
</tr>
<tr>
<td><tt>['emacs24']['build_dir']</tt></td>
<td>String</td>
<td>Where emacs archive will be extracted and builded</td>
<td><tt>/opt/emacs24</tt></td>
</tr>
<tr>
<td><tt>['emacs24']['flags']</tt></td>
<td>Array</td>
<td>List of flags passed to configure script</td>
<td><tt>[]</tt></td>
</tr>
<tr>
<td><tt>['emacs24']['version']</tt></td>
<td>String</td>
<td>Emacs version to install</td>
<td><tt>24.4</tt></td>
</tr>
<tr>
<td><tt>['emacs24']['packages']</tt></td>
<td>Array</td>
<td>Packages to install</td>
<td><tt><i>Platform-dependent</i></tt></td>
</tr>
<tr>
<td><tt>['emacs24']['force']</tt></td>
<td>Boolean</td>
<td>Force reinstall if build directory exists</td>
<td><tt>false</tt></td>
</tr>
</table>
Usage
emacs24::default
Just include emacs24
in your node's run_list
:
{ "name":"my_node", "run_list": [ "recipe[emacs24]" ] }
emacs24::compile
You can also use the emacs24::compile
recipe instead the default.
{ "name":"my_node", "run_list": [ "recipe[emacs24::compile]" ] }
This is equivalent to use emacs24::default
with force
attribute.
Tests
First, install dependencies:
bundle install
Run Checkstyle and ChefSpec:
bundle exec rake
Run Kitchen tests:
bundle exec rake kitchen
Contributing
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
License and Authors
Authors: Sliim sliim@mailoo.org
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
apt >= 0.0.0 |
build-essential >= 0.0.0 |
ohai >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
emacs24 CHANGELOG
This file is used to list changes made in each version of the emacs24 cookbook.
0.5.0
- New requirement: ohai cookbook
- Best way to determine if the
compile
recipe should be included indefault
recipe Check for version installed instead of build directory present. Use a simple Ohai custom plugin to retrieve current version installed on the system. - Use Rake instead of Strainer
- Code style improvements
0.4.1
- Don't use
sudo
command formake install
0.4.0
- Build emacs only if not built
- Added
force
attribute
0.3.0
- Emacs 24.4 as default installed version
- Added
flags
attribute to set a list of flags for configure script - Added Ubuntu 14.04 as compatible platform
0.2.1
- Spec improvements, code style
0.2.0
- Fixed packages attribute for non debian platform
- Added Ubuntu 12.04 support
- Added ChefSpec specs for unit testing
0.1.1
- Use official opscode box for test-kitchen
0.1.0
- Initial release of emacs24
Collaborator Number Metric
0.5.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.5.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.5.0 failed this metric
FC122: Use the build_essential resource instead of the recipe: emacs24/recipes/compile.rb:20
Run with Foodcritic Version 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.5.0 passed this metric
Testing File Metric
0.5.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.5.0 passed this metric
0.5.0 failed this metric
0.5.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.5.0 failed this metric
FC122: Use the build_essential resource instead of the recipe: emacs24/recipes/compile.rb:20
Run with Foodcritic Version 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.5.0 passed this metric
Testing File Metric
0.5.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.5.0 passed this metric
0.5.0 failed this metric
Run with Foodcritic Version 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.5.0 passed this metric
Testing File Metric
0.5.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.5.0 passed this metric
0.5.0 failed this metric
0.5.0 passed this metric