Exemplo n.º 1
0
 def __init__(self, hostname, username=None, password=None, os=None, osversion=None, arch=None, 
              distro=None, shelltype=None, setPrompt=True, newPassword=None, verifyPassword=None, 
              domainAdmin=None, domain=None, prod_version=None):
     super(VasComputer, self).__init__(hostname, username, password, os, osversion, arch, distro, 
                                       shelltype, setPrompt, newPassword, verifyPassword, 
                                       domainAdmin, domain, prod_version)
     if self.os is not 'windows':
         self.vastool = vastool(self.remoteShell, domainAdmin, domain)
         self.vasd = vasd(self.remoteShell)
         self.nisedit = nisedit(self.remoteShell, domain, domainAdmin)
         self.preflight = preflight(self.remoteShell, domainAdmin)
         self.vasProduct = vasProduct(self.remoteShell)
         self.uptool = uptool(self.remoteShell, domainAdmin, domain)
         self.oat = oat(self.remoteShell, domainAdmin)
         self.vgptool = vgptool(self.remoteShell)
         self.vasUtilities = vasUtilities(self.run, domain)
         self.vasypd = vasypd(self.remoteShell, self.os, self.version, self.cpuArchitecture, self.distro)
         self.vasproxyd = vasproxyd(self.remoteShell, self.os, self.version, self.cpuArchitecture, self.distro)
         self.libexec = libexec(self.run, self.prod_version)
         self.install_sh = install_sh(self.remoteShell)
         
         # for wing source assistance and code completion
         isinstance(self.vastool, vastool)
         isinstance(self.vasd, vasd)
         isinstance(self.preflight, preflight)
         isinstance(self.vasProduct, vasProduct)
         isinstance(self.uptool, uptool)
         isinstance(self.oat, oat)
         isinstance(self.nisedit, nisedit)
         isinstance(self.vgptool, vgptool)
         isinstance(self.vasUtilities, vasUtilities)
         isinstance(self.vasypd, vasypd)
         isinstance(self.vasproxyd, vasproxyd)
         isinstance(self.libexec, libexec)
         isinstance(self.install_sh, install_sh)
Exemplo n.º 2
0
 def __init__(self, remoteShell, domain):
     
     self.remoteShell = remoteShell
     
     if remoteShell.shellType <> "powershell":
         output, rc = self.remoteShell.run("uname -s", returnOutput=True)
         if output.find("Darwin") > -1:
             self.binPath = "/Applications/mcu-cli/bin/"
         else:
             self.binPath = "/opt/quest/mcu/bin/"
         
         self.treefrog = "{}treefrog.sh".format(self.binPath)
         self.installFilesDirectory = "/tmp/BullsEye"
         self.defaultDomain = domain
         
         self.vasUtilities = vasUtilities.vasUtilities(self.remoteShell, self.defaultDomain)
         isinstance(self.vasUtilities, vasUtilities.vasUtilities)