cookbook 'wp-cli', '~> 0.1.4'
wp-cli (4) Versions 0.1.4 Follow4
Installs wp-cli
cookbook 'wp-cli', '~> 0.1.4', :supermarket
knife supermarket install wp-cli
knife supermarket download wp-cli
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 (seewp 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
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write your change
- Test your change
- Submit a Pull Request using Github
Author(s)
Rubem Nakamura
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
0.1.4 failed this 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
0.1.4 failed this metric
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
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
0.1.4 failed this 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