-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jon Aumann
committed
Jun 18, 2013
0 parents
commit f2a6b3d
Showing
9 changed files
with
146 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# CHANGELOG for jaumann-myface | ||
|
||
This file is used to list changes made in each version of jaumann-myface. | ||
|
||
## 0.1.0: | ||
|
||
* Initial release of jaumann-myface | ||
|
||
- - - | ||
Check the [Markdown Syntax Guide](http://daringfireball.net/projects/markdown/syntax) for help with Markdown. | ||
|
||
The [Github Flavored Markdown page](http://github.github.com/github-flavored-markdown/) describes the differences between markdown on github and standard markdown. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
source 'https://rubygems.org' | ||
group :test do | ||
gem 'chefspec', '~> 1.3' | ||
gem 'foodcritic', '~> 2.1' | ||
gem 'strainer', '~> 3.0' | ||
gem 'test-kitchen', '~> 1.0.0.alpha' | ||
gem 'kitchen-lxc', '~> 0.0.1.beta1' | ||
gem 'knife-spork', '~> 1.0.17' | ||
gem 'hipchat', '~> 0.10.0' | ||
|
||
gem 'guard', '~> 1.8' | ||
gem 'guard-foodcritic', '~> 1.0' | ||
gem 'guard-rspec', '~> 3.0' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
guard :rspec, cli: '--color', all_on_start: false do | ||
watch(%r{^spec/.+_spec\.rb$}) | ||
watch(%r{recipes/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" } | ||
watch('spec/spec_helper.rb') { 'spec' } | ||
end | ||
|
||
guard :foodcritic, cookbook_paths: '.', all_on_start: false do | ||
watch(%r{attributes/.+\.rb$}) | ||
watch(%r{providers/.+\.rb$}) | ||
watch(%r{recipes/.+\.rb$}) | ||
watch(%r{resources/.+\.rb$}) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
jaumann-myface Cookbook | ||
======================= | ||
TODO: Enter the cookbook description here. | ||
|
||
e.g. | ||
This cookbook makes your favorite breakfast sandwhich. | ||
|
||
Requirements | ||
------------ | ||
TODO: List your cookbook requirements. Be sure to include any requirements this cookbook has on platforms, libraries, other cookbooks, packages, operating systems, etc. | ||
|
||
e.g. | ||
#### packages | ||
- `toaster` - jaumann-myface needs toaster to brown your bagel. | ||
|
||
Attributes | ||
---------- | ||
TODO: List you cookbook attributes here. | ||
|
||
e.g. | ||
#### jaumann-myface::default | ||
<table> | ||
<tr> | ||
<th>Key</th> | ||
<th>Type</th> | ||
<th>Description</th> | ||
<th>Default</th> | ||
</tr> | ||
<tr> | ||
<td><tt>['jaumann-myface']['bacon']</tt></td> | ||
<td>Boolean</td> | ||
<td>whether to include bacon</td> | ||
<td><tt>true</tt></td> | ||
</tr> | ||
</table> | ||
|
||
Usage | ||
----- | ||
#### jaumann-myface::default | ||
TODO: Write usage instructions for each cookbook. | ||
|
||
e.g. | ||
Just include `jaumann-myface` in your node's `run_list`: | ||
|
||
```json | ||
{ | ||
"name":"my_node", | ||
"run_list": [ | ||
"recipe[jaumann-myface]" | ||
] | ||
} | ||
``` | ||
|
||
Contributing | ||
------------ | ||
TODO: (optional) If this is a public cookbook, detail the process for contributing. If this is a private cookbook, remove this section. | ||
|
||
e.g. | ||
1. Fork the repository on Github | ||
2. Create a named feature branch (like `add_component_x`) | ||
3. Write you change | ||
4. Write tests for your change (if applicable) | ||
5. Run the tests, ensuring they all pass | ||
6. Submit a Pull Request using Github | ||
|
||
License and Authors | ||
------------------- | ||
Authors: TODO: List authors |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
knife: bundle exec knife cookbook test $COOKBOOK | ||
foodcritic: bundle exec foodcritic $SANDBOX/$COOKBOOK -f any | ||
rspec: (cd $COOKBOOK && bundle exec rspec --color --format documentation) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
name 'jaumann-myface' | ||
maintainer 'YOUR_COMPANY_NAME' | ||
maintainer_email 'YOUR_EMAIL' | ||
license 'All rights reserved' | ||
description 'Installs/Configures jaumann-myface' | ||
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) | ||
version '0.1.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# | ||
# Cookbook Name:: jaumann-myface | ||
# Recipe:: default | ||
# | ||
# Copyright 2013, YOUR_COMPANY_NAME | ||
# | ||
# All rights reserved - Do Not Redistribute | ||
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
require 'spec_helper' | ||
|
||
# Replace USERNAME with your username! | ||
describe 'USERNAME-myface::default' do | ||
let(:chef_run) do | ||
run = ChefSpec::ChefRunner.new(platform: 'ubuntu', version: '12.04') | ||
run.converge('USERNAME-myface::default') | ||
end | ||
|
||
it 'installs apache2' do | ||
expect(chef_run).to install_package('apache2') | ||
end | ||
|
||
it 'starts the apache2 service' do | ||
expect(chef_run).to start_service('apache2') | ||
end | ||
|
||
it 'sets apache2 to start on boot' do | ||
expect(chef_run).to set_service_to_start_on_boot 'apache2' | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
require 'chefspec' |