def init(self, force_deploy=False, client=None):
        """Reserve and deploys the nodes according to the resources section

        In comparison to the vagrant provider, networks must be characterized
        as in the networks key.

        Args:
            force_deploy (bool): True iff the environment must be redeployed
        Raises:
            MissingNetworkError: If one network is missing in comparison to
                what is claimed.
            NotEnoughNodesError: If the `min` constraints can't be met.

           """
        _force_deploy = self.provider_conf.force_deploy
        self.provider_conf.force_deploy = _force_deploy or force_deploy
        self._provider_conf = self.provider_conf.to_dict()
        r = api.Resources(self._provider_conf, client=client)
        r.launch()
        roles = r.get_roles()
        networks = r.get_networks()

        return (_to_enos_roles(roles),
                _to_enos_networks(networks))
def init ( self , force_deploy = False , client = None ) : _force_deploy = self . provider_conf . force_deploy self . provider_conf . force_deploy = _force_deploy or force_deploy self . _provider_conf = self . provider_conf . to_dict ( ) r = api . Resources ( self . _provider_conf , client = client ) r . launch ( ) roles = r . get_roles ( ) networks = r . get_networks ( ) return ( _to_enos_roles ( roles ) , _to_enos_networks ( networks ) )
Reserve and deploys the nodes according to the resources section

        In comparison to the vagrant provider, networks must be characterized
        as in the networks key.

        Args:
            force_deploy (bool): True iff the environment must be redeployed
        Raises:
            MissingNetworkError: If one network is missing in comparison to
                what is claimed.
            NotEnoughNodesError: If the `min` constraints can't be met.