Skip to content

Commit

Permalink
Issue #55 Use new naming convention
Browse files Browse the repository at this point in the history
  • Loading branch information
l0rd committed Nov 17, 2018
1 parent 28ca8c9 commit 07b537b
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 38 deletions.
57 changes: 32 additions & 25 deletions check_plugins_location.sh
Original file line number Diff line number Diff line change
@@ -1,33 +1,40 @@
#!/bin/bash

## browse all plugin directories which names goes as follow
## <plugin id>/<plugin version>
## <organization id>/<plugin id>/<plugin version>
## and check that directory names match with id/version in meta.yaml files
cd plugins
for d in */ ; do
ID_DIR_NAME=${d%/}
cd $d

for VERSION_DIR_NAME in */ ; do
# Remove trailing slash
VERSION_DIR_NAME=${VERSION_DIR_NAME%/}
cd $VERSION_DIR_NAME

ID_YAML=$(yq r meta.yaml id | sed 's/^"\(.*\)"$/\1/')
if [[ "$ID_YAML" != "$ID_DIR_NAME" ]];then
echo "!!! ID mismatch in plugin '${ID_DIR_NAME}/${VERSION_DIR_NAME}':"
echo "!!! id in meta.yaml: '${ID_YAML}'"
echo "!!! id directory name: '${ID_DIR_NAME}' "
FOUND=true
fi

VERSION_YAML=$(yq r meta.yaml version | sed 's/^"\(.*\)"$/\1/')
if [[ "$VERSION_YAML" != "$VERSION_DIR_NAME" ]];then
echo "!!! Version mismatch in plugin '${ID_DIR_NAME}/${VERSION_DIR_NAME}':"
echo "!!! version in meta.yaml: '${VERSION_YAML}'"
echo "!!! version directory name: '${VERSION_DIR_NAME}' "
FOUND=true
fi
for org in */ ; do
ORG_DIR_NAME=${org%/}
cd $org

for d in */ ; do
ID_DIR_NAME=${d%/}
cd $d

for VERSION_DIR_NAME in */ ; do
# Remove trailing slash
VERSION_DIR_NAME=${VERSION_DIR_NAME%/}
cd $VERSION_DIR_NAME

ID_YAML=$(yq r meta.yaml id | sed 's/^"\(.*\)"$/\1/')
if [[ "$ID_YAML" != "$ID_DIR_NAME" ]];then
echo "!!! ID mismatch in plugin '${ID_DIR_NAME}/${VERSION_DIR_NAME}':"
echo "!!! id in meta.yaml: '${ID_YAML}'"
echo "!!! id directory name: '${ID_DIR_NAME}' "
FOUND=true
fi

VERSION_YAML=$(yq r meta.yaml version | sed 's/^"\(.*\)"$/\1/')
if [[ "$VERSION_YAML" != "$VERSION_DIR_NAME" ]];then
echo "!!! Version mismatch in plugin '${ID_DIR_NAME}/${VERSION_DIR_NAME}':"
echo "!!! version in meta.yaml: '${VERSION_YAML}'"
echo "!!! version directory name: '${VERSION_DIR_NAME}' "
FOUND=true
fi

cd ..
done

cd ..
done
Expand Down
8 changes: 0 additions & 8 deletions plugins/che-machine-exec-plugin/0.0.1/meta.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
id: org.eclipse.che.editor.dirigible
id: dirigible-editor
version: 1.0.0
type: Che Editor
name: dirigible-che-editor-plugin
Expand Down
8 changes: 8 additions & 0 deletions plugins/eclipse/che-container-exec/0.0.1/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
id: che-container-exec
version: 0.0.1
type: Che Plugin
name: Che Container Exec Service
title: Container Exec Service Plugin for Che Workspaces
description: Che Plug-in with container-exec service that provides the ability to creatie a terminal or to execute commands for Eclipse Che workspaces.
icon: https://www.eclipse.org/che/images/ico/16x16.png
url: https://github.com/ws-skeleton/che-machine-exec/releases/download/0.0.1alfa2/che-service-plugin.tar.gz
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
id: org.eclipse.che.editor.eclipseide
id: eclipse-ide-editor
version: 0.0.1
type: Che Editor
name: eclipse-ide
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
id: org.eclipse.che.editor.gwt
id: gwt-editor
version: 1.0.0
type: Che Editor
name: gwt-ide
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
id: org.eclipse.che.editor.jupyter
id: jupyter-editor
version: 1.0.0
type: Che Editor
name: jupyter-notebook
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
id: org.eclipse.che.editor.theia
id: theia-editor
version: 1.0.0
type: Che Editor
name: theia-ide
Expand Down

0 comments on commit 07b537b

Please sign in to comment.