This cookbook set up WP-CLI
TODO: List your cookbook requirements. Be sure to include any requirements this cookbook has on platforms, libraries, other cookbooks, packages, operating systems, etc.
Key | Type | Description | Default |
---|---|---|---|
['wp-cli']['path'] |
String | Install path | '/usr/local/bin/wp' |
['wp-cli']['user']['name'] |
String | User to configure ``~/.wp-cli`` | 'wp' |
['wp-cli']['community_packages'] |
Array | Community Packages to install. Name, git URL, directory path, or .zip file |
Just include wp-cli
in your node's run_list
:
{
"name":"my_node",
"wp_cli": {
"user": {
"name": "username"
},
"community_packages": [
"wp-cli/server-command:@stable",
"[email protected]:runcommand/hook.git",
"google-sitemap-generator-cli.zip"
]
},
"run_list": [
"recipe[wp-cli]"
]
}
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
Authors: Makoto Kawasaki