You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updated OpenApiDocs to use Cloud shared storage if available, #PG-4593 (#27)
* Moved API documentation from hard coded paths to a resolver service, if on Cloud, it will use CloudDistributedCachePath, else, it will use /tmp in the plugin
* simplified code now, using generic file writing service
* Adding better tests for path resolving
* Added cloud pr suggestion, check if path exists and is writable
* fix tests
@@ -116,12 +123,12 @@ protected function doExecute(): int
116
123
117
124
if ($addAnnotations) {
118
125
foreach ($pluginNamesas$pluginName) {
119
-
$output->writeln('<info>Created Annotations for ' . $pluginName . ' and wrote results to plugins/OpenApiDocs/tmp/annotations.</info>');
126
+
$output->writeln('<info>Created Annotations for ' . $pluginName . ' and wrote results to ' . $this->specPathResolver->getAnnotationsDirectory() . '</info>');
120
127
}
121
128
}
122
129
123
130
if ($notDryRun) {
124
-
$output->writeln('<info>Results written to plugins/OpenApiDocs/tmp/specs/ directory.</info>');
131
+
$output->writeln('<info>Results written to ' . $this->specPathResolver->getSpecDirectory() . '</info>');
0 commit comments