8 class plc_uninstall(Test):
10 Completely removes the installed myplc
13 def call(self, plc_name = None, remove_all = False):
15 # Get plc configuration from config
16 plc = PLC(self.config)
17 plcs = getattr(self.config, 'plcs', [])
19 if p['name'] in [plc_name]:
22 command = "/sbin/service plc safestop && rpm -e myplc "
24 command += " && rm -rf /plc/data"
26 if self.config.verbose:
27 utils.header("Removing myplc")
28 utils.header("\n".join(command))
30 (status, output) = plc.commands(command)
32 if self.config.verbose:
33 utiils.header("\n".join(output))
37 if __name__ == '__main__':
38 args = tuple(sys.argv[1:])