Skip to content

Commit cea8800

Browse files
committed
Move docker_compose_with_custom to class EE_DOCKER
1 parent 7183162 commit cea8800

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Admin_Tools_Command.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
use EE\Model\Site;
1010
use Symfony\Component\Filesystem\Filesystem;
1111
use function EE\Site\Utils\auto_site_name;
12-
use function EE\Utils\docker_compose_with_custom;
1312
use function EE\Utils\download;
1413
use function EE\Utils\extract_zip;
1514
use function EE\Utils\random_password;
@@ -115,7 +114,7 @@ public function enable( $args, $assoc_args ) {
115114

116115
chdir( $this->site_data->site_fs_path );
117116

118-
$launch = EE::launch( docker_compose_with_custom() . ' config --services' );
117+
$launch = EE::launch( \EE_DOCKER::docker_compose_with_custom() . ' config --services' );
119118
$services = explode( PHP_EOL, trim( $launch->stdout ) );
120119
$min_req_services = [ 'nginx', 'php' ];
121120

@@ -136,7 +135,7 @@ public function enable( $args, $assoc_args ) {
136135
$docker_compose_admin = EE\Utils\mustache_render( ADMIN_TEMPLATE_ROOT . '/docker-compose-admin.mustache', $docker_compose_data );
137136
$this->fs->dumpFile( $this->site_data->site_fs_path . '/docker-compose-admin.yml', $docker_compose_admin );
138137

139-
if ( EE::exec( docker_compose_with_custom( ['docker-compose-admin.yml'] ) . ' up -d nginx' ) ) {
138+
if ( EE::exec( \EE_DOCKER::docker_compose_with_custom( ['docker-compose-admin.yml'] ) . ' up -d nginx' ) ) {
140139
EE::success( sprintf( 'admin-tools enabled for %s site.', $this->site_data->site_url ) );
141140
$this->site_data->admin_tools = 1;
142141
$this->site_data->save();

0 commit comments

Comments
 (0)