Skip to content

Commit

Permalink
feat: add all mfdata plugins as templates (#500)
Browse files Browse the repository at this point in the history
  • Loading branch information
thebaptiste authored Sep 17, 2024
1 parent 9e9941d commit 5cfe0ad
Show file tree
Hide file tree
Showing 191 changed files with 312 additions and 17 deletions.
9 changes: 9 additions & 0 deletions adm/templates/plugins/amqplistener/cookiecutter.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"version": "{% raw %}{{MFMODULE_VERSION}}{% endraw %}",
"release": "1",
"one_line_summary": "one line summary about your plugin",
"license": ["Proprietary", "BSD", "MIT", "GPL", "Specific"],
"url": "http://yourpluginhomepage",
"maintainer": "Firstname FAMILYNAME <email>",
"vendor": "MetWork"
}
1 change: 1 addition & 0 deletions adm/templates/plugins/amqplistener/hooks
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "templates/config.ini" %}
{% extends "_common/config.ini" %}

{% block step %}
{% endblock %}
Expand Down
9 changes: 9 additions & 0 deletions adm/templates/plugins/archive/cookiecutter.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"version": "{% raw %}{{MFMODULE_VERSION}}{% endraw %}",
"release": "1",
"one_line_summary": "one line summary about your plugin",
"license": ["Proprietary", "BSD", "MIT", "GPL", "Specific"],
"url": "http://yourpluginhomepage",
"maintainer": "Firstname FAMILYNAME <email>",
"vendor": "MetWork"
}
1 change: 1 addition & 0 deletions adm/templates/plugins/archive/hooks
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "templates/config.ini" %}
{% extends "_common/config.ini" %}

{% set CMD_AND_ARGS_CMD = "archive_step" %}
{% set CMD_AND_ARGS_EXTRA_ARGS = "--dest-dir={CUSTOM_DEST_DIR} --keep-tags-suffix={CUSTOM_KEEP_TAGS_SUFFIX} --force-chmod={CUSTOM_FORCE_CHMOD} --dest-basename={CUSTOM_DEST_BASENAME}" %}
Expand Down
6 changes: 6 additions & 0 deletions adm/templates/plugins/archive/{{cookiecutter.name}}/crontab
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{% if MFDATA_CURRENT_PLUGIN_CUSTOM_LIFETIME|int >= 0 %}
# keep files {{MFDATA_CURRENT_PLUGIN_CUSTOM_LIFETIME}} days
0 3 * * * {{MFDATA_HOME}}/bin/cronwrap.sh --lock --low --log-capture-to /dev/null -- "find {{MFDATA_CURRENT_PLUGIN_CUSTOM_DEST_DIR}} -type f -mtime +{{MFDATA_CURRENT_PLUGIN_CUSTOM_LIFETIME}} -exec rm -f {} \;"
# remove empty directories in archive directory
0 4 * * * {{MFDATA_HOME}}/bin/cronwrap.sh --lock --low --log-capture-to /dev/null -- "find {{MFDATA_CURRENT_PLUGIN_CUSTOM_DEST_DIR}} -type d -exec rmdir {} \;"
{% endif %}
9 changes: 9 additions & 0 deletions adm/templates/plugins/copy/cookiecutter.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"version": "{% raw %}{{MFMODULE_VERSION}}{% endraw %}",
"release": "1",
"one_line_summary": "one line summary about your plugin",
"license": ["Proprietary", "BSD", "MIT", "GPL", "Specific"],
"url": "http://yourpluginhomepage",
"maintainer": "Firstname FAMILYNAME <email>",
"vendor": "MetWork"
}
1 change: 1 addition & 0 deletions adm/templates/plugins/copy/hooks
1 change: 1 addition & 0 deletions adm/templates/plugins/copy/{{cookiecutter.name}}/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "templates/config.ini" %}
{% extends "_common/config.ini" %}

{% set CMD_AND_ARGS_CMD = "copy_step" %}
{% set CMD_AND_ARGS_EXTRA_ARGS = "--dest-dirs={CUSTOM_DEST_DIRS}" %}
Expand Down
1 change: 1 addition & 0 deletions adm/templates/plugins/copy/{{cookiecutter.name}}/crontab
9 changes: 9 additions & 0 deletions adm/templates/plugins/delete/cookiecutter.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"version": "{% raw %}{{MFMODULE_VERSION}}{% endraw %}",
"release": "1",
"one_line_summary": "one line summary about your plugin",
"license": ["Proprietary", "BSD", "MIT", "GPL", "Specific"],
"url": "http://yourpluginhomepage",
"maintainer": "Firstname FAMILYNAME <email>",
"vendor": "MetWork"
}
1 change: 1 addition & 0 deletions adm/templates/plugins/delete/hooks
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "templates/config.ini" %}
{% extends "_common/config.ini" %}

{% set CMD_AND_ARGS_CMD = "delete_step" %}

Expand Down
1 change: 1 addition & 0 deletions adm/templates/plugins/delete/{{cookiecutter.name}}/crontab
9 changes: 9 additions & 0 deletions adm/templates/plugins/fork/cookiecutter.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"version": "{% raw %}{{MFMODULE_VERSION}}{% endraw %}",
"release": "1",
"one_line_summary": "one line summary about your plugin",
"license": ["Proprietary", "BSD", "MIT", "GPL", "Specific"],
"url": "http://yourpluginhomepage",
"maintainer": "Firstname FAMILYNAME <email>",
"vendor": "MetWork"
}
1 change: 1 addition & 0 deletions adm/templates/plugins/fork/hooks
1 change: 1 addition & 0 deletions adm/templates/plugins/fork/{{cookiecutter.name}}/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "templates/config.ini" %}
{% extends "_common/config.ini" %}

{% set CMD_AND_ARGS_CMD = "fork_step" %}
{% set CMD_AND_ARGS_EXTRA_ARGS = "--dest-dir={CUSTOM_DEST_DIR} --command-template={CUSTOM_COMMAND_TEMPLATE} --command-returning-path={CUSTOM_COMMAND_RETURNING_PATH}" %}
Expand Down
1 change: 1 addition & 0 deletions adm/templates/plugins/fork/{{cookiecutter.name}}/crontab
9 changes: 9 additions & 0 deletions adm/templates/plugins/guess_file_type/cookiecutter.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"version": "{% raw %}{{MFMODULE_VERSION}}{% endraw %}",
"release": "1",
"one_line_summary": "one line summary about your plugin",
"license": ["Proprietary", "BSD", "MIT", "GPL", "Specific"],
"url": "http://yourpluginhomepage",
"maintainer": "Firstname FAMILYNAME <email>",
"vendor": "MetWork"
}
1 change: 1 addition & 0 deletions adm/templates/plugins/guess_file_type/hooks
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "templates/config.ini" %}
{% extends "_common/config.ini" %}

{% set CMD_AND_ARGS_EXTRA_ARGS = "--dest-dir={CUSTOM_DEST_DIR}" %}

Expand Down
File renamed without changes.
9 changes: 9 additions & 0 deletions adm/templates/plugins/httpsend/cookiecutter.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"version": "{% raw %}{{MFMODULE_VERSION}}{% endraw %}",
"release": "1",
"one_line_summary": "one line summary about your plugin",
"license": ["Proprietary", "BSD", "MIT", "GPL", "Specific"],
"url": "http://yourpluginhomepage",
"maintainer": "Firstname FAMILYNAME <email>",
"vendor": "MetWork"
}
1 change: 1 addition & 0 deletions adm/templates/plugins/httpsend/hooks
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "templates/config.ini" %}
{% extends "_common/config.ini" %}

{% set RETRY_TOTAL="10" %}
{% set RETRY_MIN_WAIT="1" %}
Expand Down
File renamed without changes.
9 changes: 9 additions & 0 deletions adm/templates/plugins/move/cookiecutter.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"version": "{% raw %}{{MFMODULE_VERSION}}{% endraw %}",
"release": "1",
"one_line_summary": "one line summary about your plugin",
"license": ["Proprietary", "BSD", "MIT", "GPL", "Specific"],
"url": "http://yourpluginhomepage",
"maintainer": "Firstname FAMILYNAME <email>",
"vendor": "MetWork"
}
1 change: 1 addition & 0 deletions adm/templates/plugins/move/hooks
1 change: 1 addition & 0 deletions adm/templates/plugins/move/{{cookiecutter.name}}/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "templates/config.ini" %}
{% extends "_common/config.ini" %}

{% set CMD_AND_ARGS_CMD = "move_step" %}
{% set CMD_AND_ARGS_EXTRA_ARGS = "--dest-dir={CUSTOM_DEST_DIR} --drop-tag={CUSTOM_DROP_TAGS} --force-chmod={CUSTOM_FORCE_CHMOD} --dest-basename={CUSTOM_DEST_BASENAME}" %}
Expand Down
1 change: 1 addition & 0 deletions adm/templates/plugins/move/{{cookiecutter.name}}/crontab
Loading

0 comments on commit 5cfe0ad

Please sign in to comment.