cookbook 'git_better', '~> 1.0.4'
git_better (5) Versions 1.0.4 Follow2
Provide a selection of better Git Provider(s) for Chef `deploy` resources
cookbook 'git_better', '~> 1.0.4', :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.4
- Added the missing
git_minor_versionmethod fromchef-client@12.0.0.
1.0.3
- Removed faulty use of
use_inline_resourcesmethod, which is only available if inherting from theChef::Provider::LWRPBasecore class.
1.0.2
- Refactored to LWRP within
librariessub-directory.
1.0.1
- Copy-and-paste for glory!
1.0.0
- Initial release of the
git_bettercookbook!
Check the Markdown Syntax Guide for help with Markdown.
The Github Flavored Markdown page describes the differences between markdown on github and standard markdown.
Collaborator Number Metric
1.0.4 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
1.0.4 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
1.0.4 failed this metric
FC066: Ensure chef_version is set in metadata: git_better/metadata.rb:1
FC070: Ensure supports metadata defines valid platforms: git_better/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
1.0.4 passed this metric
Testing File Metric
1.0.4 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.0.4 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
1.0.4 failed this metric
1.0.4 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
1.0.4 failed this metric
FC066: Ensure chef_version is set in metadata: git_better/metadata.rb:1
FC070: Ensure supports metadata defines valid platforms: git_better/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
1.0.4 passed this metric
Testing File Metric
1.0.4 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.0.4 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
1.0.4 failed this metric
FC070: Ensure supports metadata defines valid platforms: git_better/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
1.0.4 passed this metric
Testing File Metric
1.0.4 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.0.4 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
1.0.4 failed this metric
1.0.4 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number

