cookbook 'resource_from_hash', '= 0.1.5'
resource_from_hash (11) Versions 0.1.5 Follow1
Installs/Configures resource_from_hash
cookbook 'resource_from_hash', '= 0.1.5', :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
poise > 2.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
0.1.5 passed this metric
Contributing File Metric
0.1.5 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
0.1.5 failed this metric
FC064: Ensure issues_url is set in metadata: resource_from_hash/metadata.rb:1
FC065: Ensure source_url is set in metadata: resource_from_hash/metadata.rb:1
FC066: Ensure chef_version is set in metadata: resource_from_hash/metadata.rb:1
FC069: Ensure standardized license defined in metadata: resource_from_hash/metadata.rb:1
Run with Foodcritic Version 14.0.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.5 passed this metric
Testing File Metric
0.1.5 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
0.1.5 passed this metric
0.1.5 passed this metric
0.1.5 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
0.1.5 failed this metric
FC064: Ensure issues_url is set in metadata: resource_from_hash/metadata.rb:1
FC065: Ensure source_url is set in metadata: resource_from_hash/metadata.rb:1
FC066: Ensure chef_version is set in metadata: resource_from_hash/metadata.rb:1
FC069: Ensure standardized license defined in metadata: resource_from_hash/metadata.rb:1
Run with Foodcritic Version 14.0.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.5 passed this metric
Testing File Metric
0.1.5 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
0.1.5 passed this metric
0.1.5 failed this metric
FC065: Ensure source_url is set in metadata: resource_from_hash/metadata.rb:1
FC066: Ensure chef_version is set in metadata: resource_from_hash/metadata.rb:1
FC069: Ensure standardized license defined in metadata: resource_from_hash/metadata.rb:1
Run with Foodcritic Version 14.0.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.1.5 passed this metric
Testing File Metric
0.1.5 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
0.1.5 passed this metric
0.1.5 failed this metric
0.1.5 passed this metric