Beispiel #1
0
 def Run(self, image, name, spc, command):
     r = Run()
     args = self.Args()
     args.image = image
     args.name = name
     args.spc = spc
     args.command = command
     r.set_args(args)
     return r.run()
Beispiel #2
0
 def Run(self, image, name, spc, detach, command):
     r = Run()
     args = self.Args()
     args.image = image
     args.name = name
     args.spc = spc
     args.detach = detach
     args.command = command
     r.set_args(args)
     return r.run()
Beispiel #3
0
 def Run(self, image, name='', spc=False, detach=False, command=''):
     r = Run()
     args = self.Args()
     args.image = image
     args.name = name if name is not '' else None
     args.spc = spc
     args.detach = detach
     args.command = command if command is not '' else []
     r.set_args(args)
     try:
         return r.run()
     except ValueError as e:
         raise dbus.DBusException(str(e))
Beispiel #4
0
 def Run(self, image, name, spc, detach, ignore, command):
     r = Run()
     args = self.Args()
     args.image = image
     args.name = name
     args.spc = spc
     args.detach = detach
     args.command = command if command is not '' else []
     args.ignore = ignore
     r.set_args(args)
     try:
         return r.run()
     except ValueError as e:
         raise dbus.DBusException(str(e))