cookbook 'deploy-helper', '= 0.0.1', :supermarket
deploy-helper (2) Versions 0.0.1 Follow1
Provides helpful Chef helpers for Application deployment
cookbook 'deploy-helper', '= 0.0.1'
knife supermarket install deploy-helper
knife supermarket download deploy-helper
deploy-helper Cookbook
It leaves the application deployment purely in the hands of the developer. It provides a clean way to gather deployment details from an application repo that can then be used during the primary application deployment.
This is very basic and only supports git at the moment.
Usage
Add a .deploy.yml file to the git application repo you plan to use for an application deployment and use the helper method.
---
revision:
default: master
production: prod
staging: staging
dev: dev
migrate:
default: false
proudction: true
The helper method returns a mash of the yaml info, that should represent the Chef environment so if revision is set for production but not master it will just use whatever the default is.
app_repo = 'git@github.com:jarosser06/magic'
deploy_key = data_bag_item('secrets', 'deploy_key')
app_info = git_deployment_info(app_repo, deploy_key['key'])
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
- Author:: Jim Rosser(jarosser06@gmail.com)
copyright (C) 2015 Jim Rosser
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of the Software,
and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
deploy-helper CHANGELOG
0.0.1
- [jarosser06] - Initial release of deploy-helper
Check the Markdown Syntax Guide for help with Markdown.
The Github Flavored Markdown page describes the differences between markdown on github and standard markdown.
Foodcritic Metric
0.0.1 failed this metric
FC031: Cookbook without metadata file: /tmp/cook/aee92a707f4649665f54d36e/deploy-helper/metadata.rb:1
FC045: Consider setting cookbook name in metadata: /tmp/cook/aee92a707f4649665f54d36e/deploy-helper/metadata.rb:1
0.0.1 failed this metric
FC045: Consider setting cookbook name in metadata: /tmp/cook/aee92a707f4649665f54d36e/deploy-helper/metadata.rb:1