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])
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)