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


dfu-util (2) Versions 0.2.1

Installs/Configures dfu-util from the repository.

cookbook 'dfu-util', '~> 0.2.1'
cookbook 'dfu-util', '~> 0.2.1', :supermarket
knife cookbook site install dfu-util
knife cookbook site download dfu-util
Quality 33%

dfu-util Cookbook

Installs dfu-util from sources. Installs dependencies such as libusb (v1.0) for compilation if needed. Dfu-util sources are obtained from Particle github repo by default.



  • Debian/Ubuntu
  • Mac OS X


  • Chef 12.0+


  • apt -- needed for libusb package(s)
  • git -- needed for dfu-util source repo. and other libraries


Customize the attributes to suit site specific conventions and defaults. - node['dfu_util']['dir'] - user to use for install. defaults to /home/[user]/particle. - node['dfu_util']['directories']['tmp'] - location of tmp folder to use for cookbook activities.


Key Type Description Default
<span style="font-family: monospace;">['dfu_util']['user']</span> String User name used for install. The binary package will be given these user permissions and placed under this users home directory. <span style="font-family: monospace;">vagrant</span>
<span style="font-family: monospace;">['dfu_util']['group']</span> String Group to use for install. <span style="font-family: monospace;">vagrant</span>
<span style="font-family: monospace;">['dfu_util']['dir']</span> String Directory to place dfu_util_embedded downloads/binaries/sources. <span style="font-family: monospace;">/home/#{node['dfu_util']['user']}/dfu-util</span>
<span style="font-family: monospace;">['dfu_util']['directories']['tmp']</span> String tmp folder for cookbook-related activities <span style="font-family: monospace;">#{node['dfu_util']['dir']}/tmp</span>
<span style="font-family: monospace;">['dfu_util']['directories']['bin']</span> String bin folder for cookbook-related activities <span style="font-family: monospace;">#{node['dfu_util']['dir']}/bin</span>
<span style="font-family: monospace;">['dfu_util']['repo_url']</span> String dfu-util source git repository URL <span style="font-family: monospace;"></span>
<span style="font-family: monospace;">['dfu_util']['repo_ref']</span> String dfu-util source repository git-ref <span style="font-family: monospace;">master</span>


Not currently defined.


  • :create: Downloads dfu-util and installs it by putting it on the user's PATH.


  • :create: Configures and compiles the dfu-util sources with MAKE using a BASH script template.



Just include dfu-util in your node's run_list:

  "run_list": [


Install dfu-util in non-default folder with non-default user. ruby dfu-util do user 'my-user' group 'my-group' dir 'dfu-util-0.8' action :create end

Install dfu-util in default folder for default user with non-default binary version. ruby dfu-util do repo_url '' repo_ref 'master' action :create end


  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 & Authors

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

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
See the License for the specific language governing permissions and
limitations under the License.

Dependent cookbooks

apt >= 0.0.0
git >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

dfu-util CHANGELOG

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


  • [free] - Initial release of dfu-util

Collaborator Number Metric

0.2.1 failed this metric

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

Contributing File Metric

0.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, and your repo must contain a file

Foodcritic Metric

0.2.1 failed this metric

FC017: LWRP does not notify when updated: dfu-util/providers/default.rb:19
FC059: LWRP provider does not declare use_inline_resources: dfu-util/providers/default.rb:1
Run with Foodcritic Version 12.2.1 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

License Metric

0.2.1 passed this metric

No Binaries Metric

0.2.1 passed this metric

Publish Metric

0.2.1 passed this metric

Supported Platforms Metric

0.2.1 failed this metric

dfu-util should declare what platform(s) it supports.

Testing File Metric

0.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, and your repo must contain a file

Version Tag Metric

0.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, and your repo must include a tag that matches this cookbook version number