コード例 #1
0
ファイル: git.py プロジェクト: tigercomputing/vortex
    def configure(self):
        """
        Configure this acquirer based on settings from the vortex
        configuration.

        See :meth:`vortex.acquirer.Acquirer.configure`.
        """
        required = [
            'repository',
        ]
        defaults = {
            'revision': 'HEAD',
        }

        # Validate the configuration and absorb the values into this object
        cfg.absorb(self, self.section, required, defaults)
コード例 #2
0
ファイル: payload.py プロジェクト: tigercomputing/vortex
    def _configure(self):
        required = ["acquire_method"]
        defaults = {"environment": "development"}

        # Validate the configuration and absorb the values into this object
        cfg.absorb(self, "payload:" + self.name, required, defaults)