From 07b2e731a378c56852e2715f6c001097b81abe46 Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Mon, 11 May 2015 16:17:01 +0300 Subject: devtool: add missing docstrings Signed-off-by: Markus Lehtonen --- scripts/lib/devtool/deploy.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'scripts/lib/devtool/deploy.py') diff --git a/scripts/lib/devtool/deploy.py b/scripts/lib/devtool/deploy.py index 4f968c6f21..3c7abfa8a7 100644 --- a/scripts/lib/devtool/deploy.py +++ b/scripts/lib/devtool/deploy.py @@ -14,6 +14,7 @@ # You should have received a copy of the GNU General Public License along # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +"""Devtool plugin containing the deploy subcommands""" import os import subprocess @@ -23,10 +24,12 @@ from devtool import exec_build_env_command logger = logging.getLogger('devtool') def plugin_init(pluginlist): + """Plugin initialization""" pass def deploy(args, config, basepath, workspace): + """Entry point for the devtool 'deploy' subcommand""" import re if not args.recipename in workspace: @@ -87,7 +90,7 @@ def deploy(args, config, basepath, workspace): return 0 def undeploy(args, config, basepath, workspace): - + """Entry point for the devtool 'undeploy' subcommand""" deploy_file = os.path.join(basepath, 'target_deploy', args.target, args.recipename + '.list') if not os.path.exists(deploy_file): logger.error('%s has not been deployed' % args.recipename) @@ -122,6 +125,7 @@ def undeploy(args, config, basepath, workspace): def register_commands(subparsers, context): + """Register devtool subcommands from the deploy plugin""" parser_deploy = subparsers.add_parser('deploy-target', help='Deploy recipe output files to live target machine') parser_deploy.add_argument('recipename', help='Recipe to deploy') parser_deploy.add_argument('target', help='Live target machine running an ssh server: user@hostname[:destdir]') -- cgit 1.2.3-korg