def configure(self, options, conf): if options.with_guest_launcher is None: return global guest_starter guest_starter = create_guest_starter( options.with_guest_launcher, scripts.create_executor())
def start(args=None, stdout=None): init_logging() params = parse_args_for_snap(args) starter = guest_starter.create_guest_starter(params.guest_spec, create_executor()) ip_address = starter.start() stdout = stdout or sys.stdout stdout.write(ip_address) stdout.write('\n')
def test_creating_a_xenserver_starter(self): obj = guest_starter.create_guest_starter( 'xenserver:root@host:password:vmname/snapname', 'executor') self.assertTrue(obj is not None)
def test_created_object_has_executor(self): obj = guest_starter.create_guest_starter( 'virtualbox-pfwd:127.0.0.1:windows/t', 'executor') self.assertEquals('executor', obj.executor)
def test_created_object_has_executor(self): obj = guest_starter.create_guest_starter( 'virtualbox-pfwd:127.0.0.1:windows/t', 'executor') self.assertEquals( 'executor', obj.executor)
def configure(self, options, conf): if options.with_guest_launcher is None: return global guest_starter guest_starter = create_guest_starter(options.with_guest_launcher, scripts.create_executor())