misc.py 305 B

12345678910111213141516171819
  1. from setux.logger import silent
  2. from setux.core.action import Runner
  3. class Pinger(Runner):
  4. '''Check target availability'''
  5. @property
  6. def labeler(self):
  7. return silent
  8. @property
  9. def label(self):
  10. return 'ping'
  11. def deploy(self):
  12. return self.target.ping()