Skip to content
Snippets Groups Projects
Commit a7e8ba09 authored by jurgenhaas's avatar jurgenhaas
Browse files

Implement method isLocalDevMode

parent fa0eca62
No related branches found
No related tags found
No related merge requests found
......@@ -106,12 +106,20 @@ abstract class BaseHandler implements BaseHandlerInterface {
return FALSE;
}
/**
* {@inheritdoc}
*/
public function isLocalDevMode() {
$local_dev_mode = getenv('LAKEDROPS_DEV_ENV');
return !empty($local_dev_mode);
}
/**
* {@inheritdoc}
*/
public function isCiContext() {
$ci_project_dir = getenv('CI_PROJECT_DIR');
return !empty($ci_project_dir );
return !empty($ci_project_dir);
}
/**
......
......@@ -46,6 +46,11 @@ interface BaseHandlerInterface {
*/
public function isDevMode();
/**
* @return bool
*/
public function isLocalDevMode();
/**
* Determine if the current process runs in a CI/CD context.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment