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

The codenamephp_git_client cookbook has been deprecated

Author provided reason for deprecation:

The codenamephp_git_client cookbook has been deprecated and is no longer being maintained by its authors. Use of the codenamephp_git_client cookbook is no longer recommended.

RSS

codenamephp_git_client (2) Versions 1.1.0

Cookbook to install apache2

Policyfile
Berkshelf
Knife
cookbook 'codenamephp_git_client', '~> 1.1.0', :supermarket
cookbook 'codenamephp_git_client', '~> 1.1.0'
knife supermarket install codenamephp_git_client
knife supermarket download codenamephp_git_client
README
Dependencies
Quality 33%

Chef Cookbook

CI

Usage

Just include this cookbook in a wrapper cookbook and use the resources as you see fit. Just make sure you install git before you use any of the resources that use it
since they assume it is installed. You can of course use the codenamephp_git_client_package resource for this.

Resources

package

The codenamephp_git_client_package resource installs the package using a package manager.

Actions

  • :install: Installs the git client using a package manager.

Properties

  • package_name: The name of the package to install, defaults to 'git'

Examples

# Minimal properties
codenamephp_git_client_package 'Install git'

# With custom package name
codenamephp_git_client_package 'Install git' do
  package_name 'some package'
end

config

The codenamephp_git_client_config resource is used to set configurations through git config. It supports system wide, user global and per-repo configurations.

Actions

  • set: Sets the given config

Properties

  • key: The key of config to set, e.g. user.full_name, defaults to the resource name
  • value: The config value to set
  • user: The user to run the command as
  • scope: The scope to set the config for, one of local global system, defaults to global
  • path: The path to run the command in, needed when setting per-repo settings, defaults to empty string
  • options: Additional options that will be appended to the command, defaults to empty string

Exmaples

# Minimal properties
codenamephp_git_client_config 'user.full_name' do
  value 'Some User'
  user 'someuser'
end

# All properties
codenamephp_git_client_config 'Set some config' do
  key 'some config'
  value 'some value'
  user 'someuser'
  scope 'local'
  path '/some/path'
  options '--some-options'
end

config_user

The codenamephp_git_client_config_user is used to configure multiple values for a single user using a hash where the keys are the config keys and values the configs to be set for their keys.
The configs are all set in the --global scope.
Uses codenamephp_git_client_config internally.

Actions

  • :set: Sets the given configs for the given user

Properties

  • user: The user to execute the command as and to set the configs for
  • configs: A hash with the config keys and their values

Examples

# Minimal properties
codenamephp_git_client_config_user 'Set configs for user' do
  user 'some user'
  configs lazy { { 'user.full_name' => 'Test User', 'user.email' => 'test@test.de' } }
end

config_users

The codenamephp_git_client_config_users is used to configure multiple configs for multiple users at once. The configs are passed as a Hash with the username as key and another Hash with config name => config value pairs.
Uses codenamephp_git_client_config_user internally.

Actions

  • :set: Sets the given configs for the given users

Properties

  • users_configs: A Hash with the username as key and another Hash with config name => config value pairs.

Examples

# Minimal properties
codenamephp_git_client_config_users 'Config user' do
  users_configs lazy {
    {
      'user1' => { :config1_user1 => 'value1_user1', 'config2_user1' => 'value2_user1' },
      'user2' => { :config1_user2 => 'value1_user2', 'config2_user2' => 'value2_user2' },
    }
  }
end

config_users_from_data_bag

The config_users_from_data_bag resource can be used to set git configurations from data bags. The configs have to be set in the user item. Example:

{
  "id": "user",
  "codenamephp": {
    "git_client": {
      "config": {
        "user.full_name": "Test User",
        "user.email": "test@test.de"
      }
    }
  }
}

Only users that have a non-empty config set are used.

Actions

  • manage: Manages the configs from the data bag

Properties

  • data_bag_name: The name of the data bag to search for users, defaults to users

Examples

# Minimal properties
codenamephp_git_client_config_users_from_data_bag 'Manage git users'

# With custom data_bag_name
codenamephp_git_client_config_users_from_data_bag 'Manage git users' do
  data_bag_name 'some_data_bag'
end

Collaborator Number Metric
            

1.1.0 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

1.1.0 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

Cookstyle Metric
            

1.1.0 passed this metric

No Binaries Metric
            

1.1.0 passed this metric

Testing File Metric
            

1.1.0 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.1.0 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