def get_wrapper_tag(self): if self.meta_wrapper: if wrapper.is_url(self.meta_wrapper): raise WorkflowError( "meta_wrapper directive of module statement currently does not support full URLs." ) return self.meta_wrapper.split("/", 1)[0] return None
def modify_wrapper_uri(self, wrapper_uri, pattern=re.compile("^master/")): if self.replace_wrapper_tag is None or wrapper.is_url(wrapper_uri): return wrapper_uri else: return pattern.sub(self.replace_wrapper_tag + "/", wrapper_uri)