32 throw new \InvalidArgumentException(
47 return hash(
"sha256", self::class .
"::" . $this->path);
57 return "Create directory '{$this->path}'";
75 if (file_exists($this->path)) {
88 mkdir($this->path, $this->permissions);
90 if (!is_dir($this->path)) {
92 "Could not create directory '{$this->path}'" 103 return !file_exists($this->path);
getPreconditions(Setup\Environment $environment)
An objective is a desired state of the system that is supposed to be created by the setup...
isNotable()
Defaults to 'true'.
isApplicable(Setup\Environment $environment)
const DEFAULT_DIRECTORY_PERMISSIONS
Signals that some goal won't be achievable by actions of the system ever.
getLabel()
Defaults to "Build $this->getArtifactPath()".
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
An environment holds resources to be used in the setup process.
__construct(string $path, int $permissions=self::DEFAULT_DIRECTORY_PERMISSIONS)
getHash()
Uses hashed Path.
achieve(Setup\Environment $environment)