def _retrieve(self): """Retrieve metadata into self.retrieve_dir""" self.logger.info("Extracting existing metadata...") api_retrieve = ApiRetrieveUnpackaged( self, self._generate_package_xml(MetadataOperation.RETRIEVE), self.api_version, ) unpackaged = api_retrieve() unpackaged.extractall(self.retrieve_dir)
def _retrieve_unpackaged(self): self.logger.info("Retrieving metadata using {}".format( self.options["package_xml_path"])) api_retrieve = ApiRetrieveUnpackaged( self, self.options.get("package_xml"), self.project_config.project__package__api_version, ) unpackaged = api_retrieve() unpackaged.extractall(self.tempdir)
def _retrieve_unpackaged(self): self.logger.info("Retrieving metadata using {}".format( self.options.get("package_xml", "default package.xml"))) api_retrieve = ApiRetrieveUnpackaged( self, self._get_retrieve_package_xml_content(), self.project_config.project__package__api_version, ) unpackaged = api_retrieve() unpackaged.extractall(self.retrieve_dir)
def _retrieve_unpackaged(self): path = self.options.get("package_xml") or os.path.join( CUMULUSCI_PATH, "cumulusci", "files", "admin_profile.xml") with open(path, "r") as f: self._package_xml_content = f.read() self._package_xml_content = self._package_xml_content.format( **self.namespace_prefixes) self.logger.info("Retrieving metadata using {}".format( self.options.get("package_xml", "default package.xml"))) api_retrieve = ApiRetrieveUnpackaged( self, self._package_xml_content, self.project_config.project__package__api_version, ) unpackaged = api_retrieve() unpackaged.extractall(self.retrieve_dir)