diff options
Diffstat (limited to 'bsie/apps/index.py')
-rw-r--r-- | bsie/apps/index.py | 11 |
1 files changed, 6 insertions, 5 deletions
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.""" |