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

RSS

updatable-attributes (2) Versions 0.0.2

Allow definition of attribute based on other attributes and recomputed on update.

Berkshelf/Librarian
Policyfile
Knife
cookbook 'updatable-attributes', '~> 0.0.2'
cookbook 'updatable-attributes', '~> 0.0.2', :supermarket
knife cookbook site install updatable-attributes
knife cookbook site download updatable-attributes
README
Dependencies
Changelog
Quality 67%

Cookbook updatable-attributes

Cookbook Version License Linux Build Status Windows Build Status

Allow to declare attributes computed each time other ones are updated.

Requirements

This cookbook supports and requires Chef 12.16.23+.

Platforms

This cookbook leverage built-in Chef features and supports all Platforms.

Usage

To compute attributes based on a single attribute path:

on_attribute_update('foo', 'bar') do
  default['blah'] = node['foo']['bar']
end
# equivalent to
on_attribute_update(%w[foo bar], init_on_registration: true) do
  default['blah'] = node['foo']['bar']
end

To compute attributes based on multiple attribute paths:

on_attributes_path(%[foo bar], 'blah') do
  default['all'] = node['foo']['bar'] + node['blah']
end
# equivalent to
on_attributes_path(%[foo bar], %[blah], init_on_registration: true) do
  default['all'] = node['foo']['bar'] + node['blah']
end

Contributing

  1. Fork the repository on Github
  2. Create a named feature branch (like add_component_x)
  3. Write your change
  4. Write tests for your change (if applicable)
  5. Run the tests, ensuring they all pass
  6. Submit a Pull Request using Github

License and Authors

Copyright 2017 Baptiste Courtois

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Changelog of the updatable-attributes cookbook

This file is used to list changes made in each version of the updatable-attributes cookbook.

Version 0.0.2

  • Fix calling syntax
  • Describe the syntax in the README.md

Version 0.0.1

  • Initial implementation

Version 0.0.0

  • Initial commit

Collaborator Number Metric
            

0.0.2 failed this metric

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

Contributing File Metric
            

0.0.2 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.0.2 passed this metric

License Metric
            

0.0.2 passed this metric

No Binaries Metric
            

0.0.2 passed this metric

Publish Metric
            

0.0.2 passed this metric

Supported Platforms Metric
            

0.0.2 passed this metric

Testing File Metric
            

0.0.2 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.0.2 passed this metric