cookbook 'resource_from_hash', '= 1.2.1'
resource_from_hash (11) Versions 1.2.1 Follow1
Installs/Configures resource_from_hash
cookbook 'resource_from_hash', '= 1.2.1', :supermarket
knife supermarket install resource_from_hash
knife supermarket download resource_from_hash
resource_from_hash-cookbook
This cookbook provides a resource that, given a hash, builds a resource based on that hash.
Although fairly abstract, this resource has a simple set of attributes:
-
hash
, which accepts aHash
of attribute name:value pairs for the new resource. -
res
, which is the resource type to make.
For convenience, the resource provides two actions:
-
do
, which acts on the resource -
log
, which logs the resource and doesn't act
The following is a basic example of usage:
data = { :resource => "package", :name => "git", :attributes => { :action => :upgrade } } resource_from_hash "test" do hash data action :do end
Author:: OSU Open Source Lab (chef@osuosl.org)
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
1.2.1 (2020-08-14)
- Chef 16 compatibility
1.2.0 (2020-06-01)
- Chef 15 fixes
1.1.1 (2020-01-15)
- Chef 14 post-migration fixes
1.1.0 (2019-07-16)
- [WIP] Rename attrs hash
1.0.0 (2018-08-21)
- Convert resource_from_hash to a custom resource and simplify
0.1.5
#10 Add support
for hash attributes
0.1.0
Initial release of resource_from_hash
Collaborator Number Metric
1.2.1 failed this metric
Failure: Cookbook has 1 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
1.2.1 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
No Binaries Metric
1.2.1 passed this metric
Testing File Metric
1.2.1 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.2.1 passed this metric
1.2.1 failed this metric
1.2.1 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
No Binaries Metric
1.2.1 passed this metric
Testing File Metric
1.2.1 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.2.1 passed this metric
1.2.1 passed this metric
1.2.1 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.2.1 passed this metric
1.2.1 passed this metric