From d6a5c0f596a212f0e1d4e4b351b5b0e6857d74f7 Mon Sep 17 00:00:00 2001 From: Matthias Baumgartner Date: Wed, 26 Jul 2023 12:48:54 +0200 Subject: refactored naming policy into uri matcher --- bsie/apps/index.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'bsie/apps/index.py') diff --git a/bsie/apps/index.py b/bsie/apps/index.py index 7dda6f4..260d3c8 100644 --- a/bsie/apps/index.py +++ b/bsie/apps/index.py @@ -5,8 +5,9 @@ import os import typing # bsie imports -from bsie.lib import BSIE, DefaultNamingPolicy -from bsie.utils import bsfs, errors, node as node_, list_files +from bsie.lib import BSIE +from bsie.matcher import nodes, DefaultMatcher +from bsie.utils import bsfs, errors, list_files # inner-module imports from . import _loader @@ -45,13 +46,13 @@ def main(argv): # build pipeline pipeline = _loader.load_pipeline(args.config) - # build the naming policy - naming_policy = DefaultNamingPolicy( + # build the node matcher + matcher = DefaultMatcher( host=args.host, user=args.user, ) # build BSIE frontend - bsie = BSIE(pipeline, naming_policy, args.collect, args.discard) + bsie = BSIE(pipeline, matcher, args.collect, args.discard) def walk(handle): """Walk through given input files.""" -- cgit v1.2.3