Skip to content
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

Update functions according to db refactoring #5

Merged
merged 3 commits into from
Aug 22, 2018

Conversation

kirtangajjar
Copy link
Contributor

Use Site model instead of db calls
Use auto_site_name instead of set_site_arg

Signed-off-by: Kirtan Gajjar kirtangajjar95@gmail.com

Use auto_site_name instead of set_site_arg

Signed-off-by: Kirtan Gajjar <kirtangajjar95@gmail.com>
Signed-off-by: Kirtan Gajjar <kirtangajjar95@gmail.com>
$site_root = $db_select[0]['site_path'];
} else {

$site = Site::find( $site_name );
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Site::find is not a sufficient check. The site needs to be present as well as enabled otherwise the opening it's shell will not be possible. Create a model maybe Site::enabled that checks precisely both the things. It is required in almost all the commands.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Signed-off-by: Kirtan Gajjar <kirtangajjar95@gmail.com>
@kirtangajjar kirtangajjar self-assigned this Aug 22, 2018
Copy link
Member

@mrrobot47 mrrobot47 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rahulsprajapati rahulsprajapati merged commit 14497bd into EasyEngine:develop Aug 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants