def _import(self, argv): if len(argv) != 2: raise ArgumentException("Wrong number of arguments") org = self._client.get_organization(argv[0]) imp = Import() imp.import_distribution(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_distribution(self._parent, opts.path)