move banner into cdist module

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-10-07 17:18:39 +02:00
parent 9b0c0be556
commit be78955cc6
2 changed files with 19 additions and 17 deletions

View file

@ -19,8 +19,23 @@
# #
# #
VERSION = "2.0.3" BANNER = """
.. . .x+=:. s
dF @88> z` ^% :8
'88bu. %8P . <k .88
. '*88888bu . .@8Ned8" :888ooo
.udR88N ^"*8888N .@88u .@^%8888" -*8888888
<888'888k beWE "888L ''888E` x88: `)8b. 8888
9888 'Y" 888E 888E 888E 8888N=*8888 8888
9888 888E 888E 888E %8" R88 8888
9888 888E 888F 888E @8Wou 9% .8888Lu=
?8888u../ .888N..888 888& .888888P` ^%888*
"8888P' `"888*"" R888" ` ^"F 'Y"
"P' "" ""
"""
DOT_CDIST = ".cdist" DOT_CDIST = ".cdist"
VERSION = "2.0.3"
import os import os

View file

@ -22,25 +22,12 @@
import logging import logging
import sys import sys
log = logging.getLogger(__name__) import cdist
BANNER = """ log = logging.getLogger(__name__)
.. . .x+=:. s
dF @88> z` ^% :8
'88bu. %8P . <k .88
. '*88888bu . .@8Ned8" :888ooo
.udR88N ^"*8888N .@88u .@^%8888" -*8888888
<888'888k beWE "888L ''888E` x88: `)8b. 8888
9888 'Y" 888E 888E 888E 8888N=*8888 8888
9888 888E 888E 888E %8" R88 8888
9888 888E 888F 888E @8Wou 9% .8888Lu=
?8888u../ .888N..888 888& .888888P` ^%888*
"8888P' `"888*"" R888" ` ^"F 'Y"
"P' "" ""
"""
def banner(args): def banner(args):
"""Guess what :-)""" """Guess what :-)"""
print(BANNER) print(cdist.BANNER)
sys.exit(0) sys.exit(0)