diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-12-02 10:02:34 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-12-07 17:37:07 +0000 |
commit | a464bf23b4a52a5d784a390080fe2e4da7d2ad7a (patch) | |
tree | 5ae8786bf458e6aff6c6becf6be320e888f6cbca /bitbake/lib/toaster/toastermain/management | |
parent | e4731514f84a698b3d651040b7c45535e86049d6 (diff) | |
download | poky-a464bf23b4a52a5d784a390080fe2e4da7d2ad7a.tar.gz |
bitbake: toaster: implement get-dburl command
Implemented management command to call getDATABASE_URL API.
It will be used to get database url from toaster shell script
by running 'manage.py get-dburl'
(Bitbake rev: fabe9c8f14fd7b8ab204a2b610c64ac5b62135ac)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: brian avery <avery.brian@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastermain/management')
-rw-r--r-- | bitbake/lib/toaster/toastermain/management/commands/get-dburl.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastermain/management/commands/get-dburl.py b/bitbake/lib/toaster/toastermain/management/commands/get-dburl.py new file mode 100644 index 0000000000..22b3eb79ed --- /dev/null +++ b/bitbake/lib/toaster/toastermain/management/commands/get-dburl.py | |||
@@ -0,0 +1,9 @@ | |||
1 | from toastermain.settings import getDATABASE_URL | ||
2 | from django.core.management.base import NoArgsCommand | ||
3 | |||
4 | class Command(NoArgsCommand): | ||
5 | args = "" | ||
6 | help = "get database url" | ||
7 | |||
8 | def handle_noargs(self,**options): | ||
9 | print getDATABASE_URL() | ||