chef

https://github.com/opscode/chef

Ruby

A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure.

Chef::Mixin::Properties::ClassMethods#identity_properties

Set the identity of this resource to a particular set of properties.

This drives #identity, which returns data that uniquely refers to a given
resource on the given node (in such a way that it can be correlated
across Chef runs).

This method is unnecessary when declaring properties with `property`;
properties can be added to identity during declaration with
`identity: true`.

```ruby
property :x, identity: true # part of identity
property :y # not part of identity
```

If no properties are marked as identity, "name" is considered the identity.

Source | Google | Stack overflow

Edit

git clone [email protected]:opscode/chef.git

cd chef

open lib/chef/mixin/properties.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Chef--Mixin--Properties--ClassMethods-identity_properties-for-pr


# Commit to git

git add lib/chef/mixin/properties.rbgit commit -m "better docs for Chef::Mixin::Properties::ClassMethods#identity_properties"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Chef--Mixin--Properties--ClassMethods-identity_properties-for-pr

hub pull-request


# Celebrate!