def test_set_global_verbosity_level(self, capture): lgr = init(base_level=logging.INFO) _set_global_verbosity_level(is_verbose_output=False) lgr.debug("TEST_LOGGER_OUTPUT") capture.check() lgr.info("TEST_LOGGER_OUTPUT") capture.check(("user", "INFO", "TEST_LOGGER_OUTPUT")) _set_global_verbosity_level(is_verbose_output=True) lgr.debug("TEST_LOGGER_OUTPUT") capture.check(("user", "INFO", "TEST_LOGGER_OUTPUT"), ("user", "DEBUG", "TEST_LOGGER_OUTPUT"))
-o --outputfile=<path> Path to output Dockerfile (if omitted, will assume "Dockerfile") -c --dockerconfig=<path> Path to yaml file containing docker-py configuration -d --dryrun Whether to actually generate.. or just dryrun -b --build=<string> Image Repository and Tag to build -p --push=<string> Image Repository and Tag to push to (will target build) -v --verbose a LOT of output (Note: should be used carefully..) --version Display current version of jocker and exit """ from __future__ import absolute_import from docopt import docopt from jocker.logger import init from jocker.jocker import _set_global_verbosity_level from jocker.jocker import run jocker_lgr = init() def ver_check(): import pkg_resources version = None try: version = pkg_resources.get_distribution('jocker').version except Exception as e: print(e) finally: del pkg_resources return version def jocker_run(o):