Skip to content

Commit

Permalink
cookbook rework
Browse files Browse the repository at this point in the history
  • Loading branch information
djoos committed Sep 19, 2016
1 parent edc9b13 commit d81d466
Show file tree
Hide file tree
Showing 22 changed files with 357 additions and 252 deletions.
1 change: 1 addition & 0 deletions .category
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Utilities
1 change: 1 addition & 0 deletions .foodcritic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[FC048]
15 changes: 8 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
.vagrant
Berksfile.lock
*~
*#
.#*
\#*#
.*.sw[a-z]
*.un~

Berksfile.lock
# Bundler
Gemfile.lock
.vagrant
Vagrantfile
.bundle
.coverage
.kitchen
.kitchen.local.yml
bin/*
.bundle/*

.kitchen/
.kitchen.local.yml
26 changes: 17 additions & 9 deletions .kitchen.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,38 @@
---
driver_plugin: vagrant
driver_config:
require_chef_omnibus: true
driver:
name: vagrant

provisioner:
name: chef_zero
solo_rb:
ssl_verify_mode: verify_peer

platforms:
- name: ubuntu-12.04
run_list:
- recipe[apt]

- name: ubuntu-14.04
run_list:
- recipe[apt]

suites:
- name: default
run_list:
- recipe[pdepend::default]
- name: pear
- name: default_pear
run_list:
- recipe[pdepend::default]
attributes:
pdepend:
install_method: pear
- name: composer
- name: default_composer
run_list:
- recipe[pdepend::default]
attributes:
pdepend:
install_method: composer
- name: phar
- name: default_phar
run_list:
- recipe[pdepend::default]
attributes:
pdepend:
install_method: phar

27 changes: 20 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,32 @@
language: ruby
# install the stable release of the Chef Development Kit (ChefDK)
# use chef-current-precise to install the pre-release
addons:
apt:
sources:
- chef-stable-precise
packages:
- chefdk

rvm:
- 2.0.0
- 2.1.0
services: docker

# https://docs.travis-ci.com/user/customizing-the-build/#Skipping-the-Installation-Step
install: true

before_script:
- bundle exec berks install
- eval "$(/opt/chefdk/bin/chef shell-init bash)" # make ChefDK's Ruby the default
- chef --version
- chef exec berks install

script:
- bundle exec rake travis
- chef exec rake travis

branches:
only:
- master
- /^release\/.*$/
- /^feature\/.*$/
- /^bugfix\/.*$/

notifications:
email:
- dev@escapestudios.com
- development@davidjoos.com
2 changes: 1 addition & 1 deletion Berksfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
source 'https://supermarket.getchef.com'
source 'https://supermarket.chef.io'

metadata
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. [Add tests for your changes](https://github.com/escapestudios-cookbooks/pdepend/blob/master/TESTING.md)
4. [Add tests for your changes](https://github.com/djoos-cookbooks/pdepend/blob/master/TESTING.md)
4. Push your changes to your feature branch (`git push origin my-new-feature`)
5. Create a new Pull Request (PR)
5. Create a new PR (Pull Request)

## Testing
Contributions will only be accepted if they are fully tested as specified in [TESTING.md](https://github.com/escapestudios-cookbooks/pdepend/blob/master/TESTING.md).
Contributions will only be accepted if they are fully tested as specified in [TESTING.md](https://github.com/djoos-cookbooks/pdepend/blob/master/TESTING.md).

## metadata.rb
Please do not modify the version number in the metadata.rb; not all changes to the cookbook may be merged and released in the same version. We will handle the version updates during the release process.
22 changes: 0 additions & 22 deletions Gemfile

This file was deleted.

35 changes: 17 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
[![Build Status](https://secure.travis-ci.org/escapestudios-cookbooks/pdepend.png)](http://travis-ci.org/escapestudios-cookbooks/pdepend)
[![Build Status](https://travis-ci.org/djoos-cookbooks/pdepend.png)](http://travis-ci.org/djoos-cookbooks/pdepend)

Description
===========
# pdepend cookbook

## Description

This cookbook provides an easy way to install pdepend, PHP_Depend.

More information?
http://pdepend.org/

Requirements
============
## Requirements

## Cookbooks:
### Cookbooks:

* php
* composer

## Platforms:
### Platforms:

* Ubuntu
* Debian
Expand All @@ -26,8 +26,7 @@ Requirements
* Scientific
* Amazon

Attributes
==========
## Attributes

* `node['pdepend']['install_method']` - Installation method, "pear", "composer" or "phar" defaults to "pear"
* `node['pdepend']['version']` - The pdepend version that will be installed, defaults to "latest"
Expand All @@ -37,22 +36,22 @@ Usage
=====

1) include `recipe[pdepend]` in a run list
2)
change the attributes
--- OR ---
override the attribute on a higher level (http://wiki.opscode.com/display/chef/Attributes#Attributes-AttributesPrecedence)
2) change the attributes
--- OR ---
[override the attribute on a higher level](http://wiki.opscode.com/display/chef/Attributes#Attributes-AttributesPrecedence)

References
==========
## References

* [pdepend home page] (http://pdepend.org/)

License and Authors
===================
## License and Authors

Author: David Joos <[email protected]>
Copyright: 2016, David Joos

Author: David Joos <[email protected]>
Author: Escape Studios Development <[email protected]>
Copyright: 2013-2014, Escape Studios
Copyright: 2013-2015, Escape Studios

Unless otherwise noted, all files are released under the MIT license,
possible exceptions will contain licensing information in them.
Expand Down
Loading

0 comments on commit d81d466

Please sign in to comment.