@classmethod<EOL><INDENT>def new(cls, settings, *args, **kwargs):<DEDENT>
logger.debug('<STR_LIT>' % settings['<STR_LIT>'])<EOL>cloud = settings['<STR_LIT>']<EOL>if cloud == '<STR_LIT>':<EOL><INDENT>self = BareInstance(settings=settings, *args, **kwargs)<EOL><DEDENT>elif cloud == '<STR_LIT>':<EOL><INDENT>self = AWSInstance(settings=settings, *args, **kwargs)<EOL><DEDENT>elif cloud == '<STR_LIT>':<EOL><INDENT>self = GCPInstance(settings=settings, *args, **kwargs)<EOL><DEDENT>else:<EOL><INDENT>raise DSBException('<STR_LIT>' % cloud)<EOL><DEDENT>return self<EOL>
Create a new Cloud instance based on the Settings