]> Frank Brehm's Git Trees - pixelpark/create-vmware-tpl.git/commitdiff
Minor changes
authorFrank Brehm <frank.brehm@pixelpark.com>
Tue, 20 Mar 2018 14:24:02 +0000 (15:24 +0100)
committerFrank Brehm <frank.brehm@pixelpark.com>
Tue, 20 Mar 2018 14:24:02 +0000 (15:24 +0100)
bin/create-vmware-template
lib/cr_vmware_tpl/app.py

index 0f0289bce8500cbaf85d2c2002f5580672c9802d..f0eab742022b8aae686b636d98c0ec65a62f04ed 100755 (executable)
@@ -31,7 +31,7 @@ appname = os.path.basename(sys.argv[0])
 
 locale.setlocale(locale.LC_ALL, '')
 
-app = CrTplApplication(appname=appname)
+app = CrTplApplication(appname=appname, base_dir=base_dir)
 app.initialized = True
 
 if app.verbose > 2:
index 792c14d259285847aea74f3306d98fc5c82ad210..fe2048e04a9785a4723681cc24125e4a66e7f8c9 100644 (file)
@@ -28,7 +28,7 @@ from .colored import ColoredFormatter, colorstr
 
 from .obj import PpBaseObject
 
-__version__ = '0.1.1'
+__version__ = '0.1.2'
 LOG = logging.getLogger(__name__)
 
 
@@ -145,6 +145,8 @@ class CrTplApplication(PpBaseObject):
         self._init_env()
         self._perform_env()
 
+        self.post_init()
+
     # -----------------------------------------------------------
     @property
     def exit_value(self):
@@ -387,8 +389,7 @@ class CrTplApplication(PpBaseObject):
 
         """
 
-        if self.simulate:
-            LOG.warn("Simulation mode - nothing is really done.")
+        pass
 
     # -------------------------------------------------------------------------
     def _run(self):
@@ -399,7 +400,7 @@ class CrTplApplication(PpBaseObject):
 
         """
 
-        raise FunctionNotImplementedError('_run', self.__class__.__name__)
+        LOG.info("Starting ...")
 
     # -------------------------------------------------------------------------
     def __call__(self):