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

Select Status

RSS

wp-cli (4) Versions 0.1.4

Installs wp-cli

Policyfile
Berkshelf
Knife
cookbook 'wp-cli', '~> 0.1.4', :supermarket
cookbook 'wp-cli', '~> 0.1.4'
knife supermarket install wp-cli
knife supermarket download wp-cli
README
Dependencies
Changelog
Quality 17%

wp-cli Chef Cookbook

Installs WP-CLI.

Attributes

<table>
<tr>
<th>Key</th>
<th>Type</th>
<th>Description</th>
<th>Default</th>
</tr>
<tr>
<td><tt>['wp-cli']['dir']</tt></td>
<td>String</td>
<td>The installation dir</td>
<td><tt>/usr/local/share/wp-cli</tt></td>
</tr>
<tr>
<td><tt>['wp-cli']['link']</tt></td>
<td>String</td>
<td>The binary link</td>
<td><tt>/usr/local/bin/wp</tt></td>
</tr>
</table>

Usage

Just include wp-cli in your node's run_list:

{
  "name":"my_node",
  "run_list": [
    "recipe[wp-cli]"
  ]
}

Resources / Providers

This cookbook includes an LWRP for execute wp-cli commands

wp_cli_command

Execute WP-CLI with the desired command and arguments.

Parameters:

  • command - WP-CLI command.
  • args - Hash with the command arguments
  • stdin - Free text to the standard input (see wp core config --extra-php)
  • cwd - WordPress installation path.
  • user - Execute WP-CLI with under the desired user privileges.

Examples:

Execute wp core is-installed over the WordPress installation directory.

    wp_cli_command 'core is-installed' do
      args(
        'path' => '/path/to/wordpress/',
        'allow-root' => ''
      )
    end

or

    wp_cli_command 'core is-installed' do
      args(
        'allow-root' => ''
      )
      cwd '/path/to/wordpress/'
    end

Contributing

  1. Fork the repository on Github
  2. Create a named feature branch (like add_component_x)
  3. Write your change
  4. Test your change
  5. Submit a Pull Request using Github

Author(s)

Rubem Nakamura

License

MIT LICENSE

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

wp-cli CHANGELOG

0.1.4

  • [jespada] Enhance/hide sensitive data

0.1.3

  • [Maks3w] Recipe for bash completition.
  • [Maks3w] Create a chef definition for abstract the use of wp-cli

0.1.2

  • [Maks3w] Use /usr/local for binaries and share
  • [cimocimocimo] Fixes error with setting node attribute

0.1.1

  • [Rubem Nakamura] - Added license and Added metadata.json

0.1.0

  • [Rubem Nakamura] - Initial release of wp-cli

Collaborator Number Metric
            

0.1.4 failed this metric

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

Contributing File Metric
            

0.1.4 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.4 failed this metric

FC064: Ensure issues_url is set in metadata: wp-cli/metadata.rb:1
FC065: Ensure source_url is set in metadata: wp-cli/metadata.rb:1
FC066: Ensure chef_version is set in metadata: wp-cli/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: wp-cli/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric
            

0.1.4 passed this metric

Testing File Metric
            

0.1.4 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.4 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 include a tag that matches this cookbook version number