Ejemplo n.º 1
0
    def load_components(self, nodeps=False, dryrun=False):
        """
        Load components for the Nulecule application. Sets a list of
        NuleculeComponent instances to self.components.

        Args:
            nodeps (bool): When True, do not external dependencies of a
                           Nulecule component
            dryrun (bool): When True, do not make any change to the host
                           system

        Returns:
            None
        """
        components = []
        for node in self.graph:
            node_name = node[NAME_KEY]
            source = Utils.getSourceImage(node)
            component = NuleculeComponent(
                node_name, self.basepath, source,
                node.get(PARAMS_KEY), node.get(ARTIFACTS_KEY),
                self.config)
            component.load(nodeps, dryrun)
            components.append(component)
        self.components = components
Ejemplo n.º 2
0
    def load_components(self, nodeps=False, dryrun=False):
        """
        Load components for the Nulecule application. Sets a list of
        NuleculeComponent instances to self.components.

        Args:
            nodeps (bool): When True, do not external dependencies of a
                           Nulecule component
            dryrun (bool): When True, do not make any change to the host
                           system

        Returns:
            None
        """
        components = []
        for node in self.graph:
            node_name = node[NAME_KEY]
            source = Utils.getSourceImage(node)
            component = NuleculeComponent(
                self._get_component_namespace(node_name), self.basepath,
                source, node.get(PARAMS_KEY), node.get(ARTIFACTS_KEY),
                self.config)
            component.load(nodeps, dryrun)
            components.append(component)
        self.components = components
Ejemplo n.º 3
0
    def load_components(self, nodeps=False, dryrun=False):
        """
        Load components for the Nulecule application. Sets a list of
        NuleculeComponent instances to self.components.

        Args:
            nodeps (bool): When True, do not external dependencies of a
                           Nulecule component
            dryrun (bool): When True, do not make any change to the host
                           system

        Returns:
            None
        """
        components = []
        for node in self.graph:
            node_name = node['name']
            source = Utils.getSourceImage(node)
            component = NuleculeComponent(node_name, self.basepath, source,
                                          node.get('params'),
                                          node.get('artifacts'))
            component.load(nodeps, dryrun)
            components.append(component)
        self.components = components