Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

RSS

git_better (5) Versions 1.0.4

Provide a selection of better Git Provider(s) for Chef `deploy` resources

Policyfile
Berkshelf
Knife
cookbook 'git_better', '~> 1.0.4', :supermarket
cookbook 'git_better', '~> 1.0.4'
knife supermarket install git_better
knife supermarket download git_better
README
Dependencies
Changelog
Quality 17%

git_better GitHub Latest Release Build Status Chef Cookbook

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

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Run the unit tests (bundle exec rake spec)
  5. Run test kitchen (bundle exec kitchen test)
  6. Push to the branch (git push origin my-new-feature)
  7. 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_version method from chef-client@12.0.0.

1.0.3

  • Removed faulty use of use_inline_resources method, which is only available if inherting from the Chef::Provider::LWRPBase core class.

1.0.2

  • Refactored to LWRP within libraries sub-directory.

1.0.1

  • Copy-and-paste for glory!

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.

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