コード例 #1
0
ファイル: boottool.py プロジェクト: pradeepkumars/autotest
 def _init_on_demand(self):
     if not self.instantiated:
         try:
             install_grubby_if_necessary()
             Grubby.__init__(self, self.path)
             self.instantiated = True
         except Exception, e:
             raise error.JobError("Unable to instantiate boottool: %s" % e)
コード例 #2
0
ファイル: boottool.py プロジェクト: vi-patel/autotest
 def _init_on_demand(self):
     if not self.instantiated:
         try:
             install_grubby_if_necessary()
             Grubby.__init__(self, self.path)
             self.instantiated = True
         except Exception, e:
             raise error.JobError("Unable to instantiate boottool: %s" % e)
コード例 #3
0
ファイル: boottool.py プロジェクト: pradeepkumars/autotest
 def __getattr__(self, name):
     self._init_on_demand()
     return Grubby.__getattribute__(self, name)
コード例 #4
0
ファイル: boottool.py プロジェクト: b1-systems/autotest
 def __init__(self, path='/sbin/grubby'):
     install_grubby_if_missing()
     Grubby.__init__(self, path)
コード例 #5
0
ファイル: boottool.py プロジェクト: vi-patel/autotest
 def __getattr__(self, name):
     self._init_on_demand()
     return Grubby.__getattribute__(self, name)