From 832b7fb254dbd17f99c1960b8381f847b063ec88 Mon Sep 17 00:00:00 2001 From: Ralf Langebrake Date: Sat, 3 Feb 2024 02:53:17 +0100 Subject: [PATCH] Fix botmeta, license, whitespace and missing definitions --- .github/BOTMETA.yml | 2 ++ plugins/modules/artisan.py | 27 +++++++++++++++------------ 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a/.github/BOTMETA.yml b/.github/BOTMETA.yml index 5700445910..9687185157 100644 --- a/.github/BOTMETA.yml +++ b/.github/BOTMETA.yml @@ -400,6 +400,8 @@ files: maintainers: evgkrsk $modules/archive.py: maintainers: bendoh + $modules/artisan.py: + maintainers: codebarista $modules/atomic_: maintainers: krsacme $modules/atomic_container.py: diff --git a/plugins/modules/artisan.py b/plugins/modules/artisan.py index 38dde4d0eb..8d29ff46c2 100644 --- a/plugins/modules/artisan.py +++ b/plugins/modules/artisan.py @@ -1,29 +1,23 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2024, Ralf Langebrake -# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) -from __future__ import (absolute_import, division, print_function) +# Copyright (c) 2024, Ralf Langebrake +# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) +# SPDX-License-Identifier: GPL-3.0-or-later +from __future__ import absolute_import, division, print_function __metaclass__ = type -import os -import re - -from ansible.module_utils.basic import AnsibleModule - DOCUMENTATION = r''' --- module: artisan short_description: Laravel command line interface -version_added: "1.0.0" - description: - > - Artisan is the command line interface included with Laravel, the - PHP web application framework for artisans. The module was heavily + Artisan is the command line interface included with Laravel, the + PHP web application framework for artisans. The module was heavily inspired by composer, which is typically used together with artisan. extends_documentation_fragment: @@ -50,11 +44,15 @@ options: description: - Command options like seed or force without leading hyphens. required: false + elements: str + default: [] type: list args: description: - Command arguments, mainly in custom commands. required: false + elements: str + default: [] type: list php_path: description: @@ -126,6 +124,11 @@ EXAMPLES = r''' - up ''' +import os +import re + +from ansible.module_utils.basic import AnsibleModule + def parse(out): # remove any unicode strings