Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Aumann committed Jun 18, 2013
0 parents commit f2a6b3d
Show file tree
Hide file tree
Showing 9 changed files with 146 additions and 0 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
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.
14 changes: 14 additions & 0 deletions Gemfile
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
12 changes: 12 additions & 0 deletions Guardfile
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
68 changes: 68 additions & 0 deletions README.md
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
3 changes: 3 additions & 0 deletions Strainerfile
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)
7 changes: 7 additions & 0 deletions metadata.rb
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'
8 changes: 8 additions & 0 deletions recipes/default.rb
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
#
21 changes: 21 additions & 0 deletions spec/default_spec.rb
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
1 change: 1 addition & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require 'chefspec'

0 comments on commit f2a6b3d

Please sign in to comment.