Exemplo n.º 1
0
# -*- coding: utf-8 -*-

#
# Copyright (c) 2012 Virtual Cable S.L.
# All rights reserved.
#

'''
@author: Adolfo Gómez, dkmaster at dkmon dot com
'''

from django.utils.translation import ugettext_noop as _
from uds.core.osmanagers.OSManagersFactory import OSManagersFactory
from uds.core.managers.DownloadsManager import DownloadsManager
from .WindowsOsManager import WindowsOsManager
from .WinDomainOsManager import WinDomainOsManager
from .WinRandomPassOsManager import WinRandomPassManager
import os.path
import sys

OSManagersFactory.factory().insert(WindowsOsManager)
OSManagersFactory.factory().insert(WinDomainOsManager)
OSManagersFactory.factory().insert(WinRandomPassManager)

DownloadsManager.manager().registerDownloadable('UDSActorSetup.exe',
                                                _('UDS Actor for windows machines'),
                                                os.path.dirname(sys.modules[__package__].__file__) + '/files/UDSActorSetup.exe',
                                                'application/x-msdos-program')
Exemplo n.º 2
0
"""
@author: Adolfo Gómez, dkmaster at dkmon dot com
"""
from __future__ import unicode_literals

from django.utils.translation import ugettext_noop as _
from uds.core.osmanagers.OSManagersFactory import OSManagersFactory
from uds.core.managers.DownloadsManager import DownloadsManager
from uds.core import VERSION

from .LinuxOsManager import LinuxOsManager
from .LinuxRandomPassOsManager import LinuxRandomPassManager
import os.path
import sys

OSManagersFactory.factory().insert(LinuxOsManager)
OSManagersFactory.factory().insert(LinuxRandomPassManager)

DownloadsManager.manager().registerDownloadable('udsactor_{version}_all.deb'.format(version=VERSION),
                                                _('UDS Actor for Debian, Ubuntu, ... Linux machines <b>(Requires python >= 3.5)</b>'),
                                                os.path.dirname(sys.modules[__package__].__file__) + '/files/udsactor_{version}_all.deb'.format(version=VERSION),
                                                'application/x-debian-package')

DownloadsManager.manager().registerDownloadable('udsactor-{version}-1.noarch.rpm'.format(version=VERSION),
                                                _('UDS Actor for Centos, Fedora, RH, ... Linux machines <b>(Requires python 2.7)</b>'),
                                                os.path.dirname(sys.modules[__package__].__file__) + '/files/udsactor-{version}-1.noarch.rpm'.format(version=VERSION),
                                                'application/x-redhat-package-manager')

DownloadsManager.manager().registerDownloadable('udsactor-opensuse-{version}-1.noarch.rpm'.format(version=VERSION),
                                                _('UDS Actor for openSUSE, ... Linux machines <b>(Requires python 2.7)</b>'),
                                                os.path.dirname(sys.modules[__package__].__file__) + '/files/udsactor-opensuse-{version}-1.noarch.rpm'.format(version=VERSION),
Exemplo n.º 3
0
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
'''
@author: Adolfo Gómez, dkmaster at dkmon dot com
'''
from __future__ import unicode_literals

from django.utils.translation import ugettext_noop as _
from uds.core.osmanagers.OSManagersFactory import OSManagersFactory
from uds.core.managers.DownloadsManager import DownloadsManager
from .LinuxOsManager import LinuxOsManager
from .LinuxRandomPassOsManager import LinuxRandomPassManager
import os.path
import sys

OSManagersFactory.factory().insert(LinuxOsManager)
OSManagersFactory.factory().insert(LinuxRandomPassManager)

DownloadsManager.manager().registerDownloadable(
    'udsactor_1.7.0_all.deb',
    _('UDS Actor for Debian, Ubuntu, ... Linux machines <b>(Requires python 2.7)</b>'
      ),
    os.path.dirname(sys.modules[__package__].__file__) +
    '/files/udsactor_1.7.0_all.deb', 'application/x-debian-package')

DownloadsManager.manager().registerDownloadable(
    'udsactor-1.7.0-1.noarch.rpm',
    _('UDS Actor for Centos, Fedora, RH, ... Linux machines <b>(Requires python 2.7)</b>'
      ),
    os.path.dirname(sys.modules[__package__].__file__) +
    '/files/udsactor-1.7.0-1.noarch.rpm',