Skip to content

Commit 57923f6

Browse files
committed
Add debugger
1 parent a8a6a77 commit 57923f6

2 files changed

Lines changed: 4 additions & 11 deletions

File tree

src/Commands/InitStack.php

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function handle(): int
4040
if ($resolvedRuntime = ($this->runtimes[$runtime] ?? null)) {
4141
if ((new File)->copyDirectory($this->devstackStorage()->path($resolvedRuntime), $destination)) {
4242
$this->info("
43-
Runtime for <comment>{$runtime}</comment> is now loaded to {$destination}.
43+
Runtime for <comment>{$resolvedRuntime}</comment> is now loaded to {$destination}.
4444
4545
You can now run the <comment>dev</comment> command. To get started, run <comment>dev up</comment> or <comment>dev up -d</comment> to start the docker containers.
4646
For the first run, it will build the images first and proceed running the containers. To stop the
@@ -102,16 +102,7 @@ private function resolveRuntimes()
102102
foreach ($runtimes as $runtime) {
103103
$runtimeName = pathinfo($runtime, PATHINFO_BASENAME);
104104
$this->runtimes[$runtimeName] = $runtime;
105-
$this->devstackStorage()->move($runtime, 'runtimes/' . $runtimeName, [
106-
'file' => [
107-
'public' => 0755,
108-
'private' => 0755,
109-
],
110-
'dir' => [
111-
'public' => 0755,
112-
'private' => 0755,
113-
],
114-
]);
105+
$this->devstackStorage()->move($runtime, 'runtimes/' . $runtimeName);
115106
}
116107
$this->devstackStorage()->deleteDirectory('tmp');
117108
}

src/File.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ public function isDirectory($directory)
5050

5151
public function copyDirectory($directory, $destination, $options = null)
5252
{
53+
dump([$directory, $destination]);
54+
5355
if (! $this->isDirectory($directory)) {
5456
return false;
5557
}

0 commit comments

Comments
 (0)