gitreceive Cookbook
Requirements
Platform:
Ubuntu 10.0.4LTS, 12.0.4LTS
Cookbooks:
apt sudo
Attributes
default['gitreceive']['url'] = 'https://raw.github.com/octohost/octohost/master/bin/gitreceive'
default['gitreceive']['path'] = '/usr/bin/gitreceive'
default['receiver']['url'] = 'https://raw.github.com/octohost/octohost/master/bin/receiver.sh'
default['receiver']['path'] = '/home/git/receiver'
default['authorization']['sudo']['include_sudoers_d'] = true
Recipes
gitreceive::default
Installs and sets up gitreceive for octohost.
Yes, this is overkill but it's part of a whole Chef based install.
Currently not complete due to some sort of sudo LWRP thing. Sorting it out.
Testing
The cookbook provides the following Rake tasks for testing:
rake integration # Alias for kitchen:all
rake kitchen:all # Run all test instances
rake kitchen:default-centos-64 # Run default-centos-64 test instance
rake kitchen:default-ubuntu-1204 # Run default-ubuntu-1204 test instance
rake lint # Lint Chef cookbooks
rake rubocop # Run rubocop tests
rake spec # Run ChefSpec examples
rake tailor # Run tailor tests
rake taste # Run taste tests
rake test # Run all tests
License and Author
Author:: Darron Froese (darron@froese.org)
Copyright:: 2013, Darron Froese
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.
Contributing
We welcome contributed improvements and bug fixes via the usual workflow:
- Fork this repository
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new pull request