-
Notifications
You must be signed in to change notification settings - Fork 14
Convert from command to site-type #31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert from command to site-type #31
Conversation
Signed-off-by: Riddhesh Sanghvi <[email protected]>
Signed-off-by: Riddhesh Sanghvi <[email protected]>
Signed-off-by: Riddhesh Sanghvi <[email protected]>
Signed-off-by: Riddhesh Sanghvi <[email protected]>
Signed-off-by: Riddhesh Sanghvi <[email protected]>
src/WP.php
Outdated
@@ -16,7 +16,7 @@ | |||
* | |||
* @package ee-cli | |||
*/ | |||
class Site_WP_Command extends EE_Site_Command { | |||
class WP extends EE_Site_Command { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that class name is not long we can use WordPress as the class name. Please update it as WordPress and rename file to wordpress.php.
src/WP.php
Outdated
if ( ! EE::exec( $core_download_command ) ) { | ||
EE::error('Unable to download wp core.', false ); | ||
if ( ! \EE::exec( $core_download_command ) ) { | ||
\EE::error('Unable to download wp core.', false ); | ||
} | ||
|
||
// TODO: Look for better way to handle mysql healthcheck |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have some issue for this in our repo? If not please create one so that it won't lost in code itself.
Signed-off-by: Riddhesh Sanghvi <[email protected]>
Signed-off-by: Riddhesh Sanghvi <[email protected]>
Signed-off-by: Riddhesh Sanghvi <[email protected]>
Test: https://travis-ci.org/mrrobot47/easyengine/builds/421700140