cookbook 'git_better', '= 1.0.0'
git_better (5) Versions 1.0.0 Follow2
Provide a selection of better Git Provider(s) for Chef `deploy` resources
cookbook 'git_better', '= 1.0.0', :supermarket
knife supermarket install git_better
knife supermarket download git_better
git_better
A Chef cookbook to provide a selection of better Git Provider(s) for Chef deploy
resources.
Supported Platforms
Verified
- RHEL: Amazon Linux
Unverified
- RHEL: RedHat, CentOS, Scientific, Oracle, Fedora, etc.
- Debian: Debian, Ubuntu, LinuxMint, etc.
- MacOS X: MacOS X, MacOS X Server, etc.
- Windows: Windows, MinGW32, MSWin, etc.
- Solaris: Solaris, Solaris2, OpenSolaris, OmniOS, SmartOS, etc.
Requirements
Assumes that git >= 1.7.10
is installed on the system (Chef assumes the same).
Usage
Add the git_better
cookbook to your Berksfile or other cookbook-fetching mechanism.
Then, in some recipe file where you are using a deploy
resource:
deploy '/srv/www/my_app' do # Set `scm_provider` to `Chef::Provider::GitSingleBranch` (instead of `:git`, or default) scm_provider Chef::Provider::GitSingleBranch repository 'git@github.com:YourUsername/YourProject.git' revision 'my_branch' user 'deploy' group 'www-data' # ... # etc., other attributes, etc. # ... end
Deploy a Git-based application from the repository git@github.com:YourUsername/YourProject.git
but ONLY clone the my_branch
branch.
Gotchas
If the shallow_clone
attribute of a deploy
resource is not included or is set to false
, this provider will default to setting depth
equal to 1
. However, if shallow_clone
is set to true
, Chef unfortunately forcibly binds this provider to using a depth
of 5
instead.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Run the unit tests (
bundle exec rake spec
) - Run test kitchen (
bundle exec kitchen test
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
License
Copyright (c) 2015, James M. Greene (MIT License)
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
git_better
CHANGELOG
This file is used to list changes made in each version of the git_better
cookbook.
1.0.0
- Initial release of the
git_better
cookbook!
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
1.0.0 passed this metric
1.0.0 passed this metric