Ejemplo n.º 1
0
    def _import(self, argv):
        if len(argv) != 2:
            raise ArgumentException("Wrong number of arguments")

        org = self._client.organizations().get(argv[0])
        imp = Import(update_existing=self._config.options.update_existing)
        imp.import_platform(org, argv[1])
Ejemplo n.º 2
0
    def _import(self, argv):
        if len(argv) != 2:
            raise ArgumentException("Wrong number of arguments")

        org = self._client.organizations().get(argv[0])
        imp = Import(update_existing=self._config.options.update_existing)
        imp.import_platform(org, argv[1])
Ejemplo n.º 3
0
    def import_entity(self, opts):
        if opts.path is None:
            raise Exception("You must provide the path to the input folder")

        imp = Import(opts.skip_conflicts, opts.dry_run)
        imp.import_platform(self._parent, opts.path)
Ejemplo n.º 4
0
    def import_entity(self, opts):
        if opts.path is None:
            raise Exception("You must provide the path to the input folder")

        imp = Import(opts.skip_conflicts, opts.dry_run)
        imp.import_platform(self._parent, opts.path)