Skip to content

Commit

Permalink
Set root folder for script
Browse files Browse the repository at this point in the history
  • Loading branch information
stmh committed Apr 6, 2021
1 parent 1ad9ef3 commit 35d3e98
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Method/K8sMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -464,11 +464,13 @@ public function appCreate(HostConfig $host_config, TaskContextInterface $context
return;
}

$project_folder = $this->ensureShell($host_config, $context);
$context->set('rootFolder', realpath(dirname($project_folder)));
ScriptMethod::prepareContextFromScript($context, $script_data);


/** @var \Phabalicious\Method\ScriptMethod $script_method */
$script_method = $context->getConfigurationService()->getMethodFactory()->getMethod("script");
$this->ensureShell($host_config, $context);
$context->setShell($this->kubectlShell);
$script_method->runScript($host_config, $context);
}
Expand Down

0 comments on commit 35d3e98

Please sign in to comment.