Source code for COT.helpers.mkisofs

#!/usr/bin/env python
# - Helper for 'mkisofs' and 'genisoimage'
# February 2015, Glenn F. Matthews
# Copyright (c) 2013-2017 the COT project developers.
# See the COPYRIGHT.txt file at the top-level directory of this distribution
# and at
# This file is part of the Common OVF Tool (COT) project.
# It is subject to the license terms in the LICENSE.txt file found in the
# top-level directory of this distribution and at
# No part
# of COT, including this file, may be copied, modified, propagated, or
# distributed except according to the terms contained in the LICENSE.txt file.

"""Give COT access to mkisofs, genisoimage, or xorriso for creating ISO images.


.. autosummary::


from .helper import Helper

[docs]class MkISOFS(Helper): """Helper provider for ``mkisofs``. """ _provider_package = { 'brew': 'cdrtools', 'port': 'cdrtools', }
[docs] def __init__(self): """Initializer.""" super(MkISOFS, self).__init__("mkisofs", version_regexp="mkisofs ([0-9.]+)")
[docs]class GenISOImage(Helper): """Helper provider for ``genisoimage``, a fork of mkisofs.""" _provider_package = { 'apt-get': 'genisoimage', 'yum': 'genisoimage', }
[docs] def __init__(self): """Initializer.""" super(GenISOImage, self).__init__( "genisoimage", version_regexp="genisoimage ([0-9.]+)")
[docs]class XorrISO(Helper): """Helper provider for ``xorriso``. """ _provider_package = { 'apt-get': 'xorriso', }
[docs] def __init__(self): """Initializer.""" super(XorrISO, self).__init__( "xorriso", version_regexp="xorriso ([0-9.]+)")