summaryrefslogtreecommitdiffstats
path: root/scripts/lib/devtool/deploy.py
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2015-05-11 16:17:01 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-05-15 22:21:54 +0100
commit07b2e731a378c56852e2715f6c001097b81abe46 (patch)
tree38b6c3b1d0f1d7b07580bd67ef680783e7c56f86 /scripts/lib/devtool/deploy.py
parent92b84d54292518a387460ee1ec5a994023eb26fc (diff)
downloadopenembedded-core-contrib-07b2e731a378c56852e2715f6c001097b81abe46.tar.gz
devtool: add missing docstrings
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'scripts/lib/devtool/deploy.py')
-rw-r--r--scripts/lib/devtool/deploy.py6
1 files changed, 5 insertions, 1 deletions
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]')