Ejemplo n.º 1
0
 def __init__(self):
     if not APTPkg.is_installed("software-properties-common"):
         apt_get = APTGet()
         apt_get.update()
         apt_get.install("software-properties-common")
Ejemplo n.º 2
0
 def is_installed():
     os_name = get_os()
     if os_name == 'debian' or os_name == 'ubuntu':
         return APTPkg.is_installed('docker-engine')
     else:
         return False
Ejemplo n.º 3
0
 def is_installed(self):
     if self.os_name == 'debian' or self.os_name == 'ubuntu':
         return APTPkg.is_installed('curl')
     else:
         return False