Esempio n. 1
0
 def remove(self, name):
     """
     Remove a package by name.
     :param name: A complete or partial package name.
     :type name: str
     :return: (status, {stdout:<str>, stderr:<str>})
     :rtype: tuple
     """
     shell = Shell()
     return shell.run('yum', 'remove', name, '-y')
Esempio n. 2
0
 def update(self, name=''):
     """
     Update a package by (optional) name.
     :param name: A complete or partial package name.
     :type name: str
     :return: (status, {stdout:<str>, stderr:<str>})
     :rtype: tuple
     """
     shell = Shell()
     return shell.run('yum', 'update', name, '-y')
Esempio n. 3
0
 def remove(self, name):
     """
     Remove a package by name.
     :param name: A complete or partial package name.
     :type name: str
     :return: (status, {stdout:<str>, stderr:<str>})
     :rtype: tuple
     """
     shell = Shell()
     return shell.run('yum', 'remove', name, '-y')
Esempio n. 4
0
 def update(self, name=''):
     """
     Update a package by (optional) name.
     :param name: A complete or partial package name.
     :type name: str
     :return: (status, {stdout:<str>, stderr:<str>})
     :rtype: tuple
     """
     shell = Shell()
     return shell.run('yum', 'update', name, '-y')
Esempio n. 5
0
 def sleep(self, n):
     log.info('PID: %s', os.getpid())
     shell = Shell()
     shell.run('sleep', str(n))
Esempio n. 6
0
 def sleep(self, n):
     log.info('PID: %s', os.getpid())
     shell = Shell()
     shell.run('sleep', str(n))