chef

https://github.com/opscode/chef

Ruby

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

Chef::Resource.action_class

The action class is an automatic `Provider` created to handle
actions declared by `action :x do ... end`.

This class will be returned by `resource.provider` if `resource.provider`
is not set. `provider_for_action` will also use this instead of calling
out to `Chef::ProviderResolver`.

If the user has not declared actions on this class or its superclasses
using `action :x do ... end`, then there is no need for this class and
`action_class` will be `nil`.

If a block is passed, the action_class is always created and the block is
run inside it.

Source | Google | Stack overflow

Edit

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

cd chef

open lib/chef/resource.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Chef--Resource-action_class-for-pr


# Commit to git

git add lib/chef/resource.rbgit commit -m "better docs for Chef::Resource.action_class"


# 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--Resource-action_class-for-pr

hub pull-request


# Celebrate!