diff --git a/kittengroomer/helpers.py b/kittengroomer/helpers.py index e8a7328..09be7cd 100644 --- a/kittengroomer/helpers.py +++ b/kittengroomer/helpers.py @@ -16,19 +16,6 @@ import argparse import magic -class KittenGroomerError(Exception): - """Base KittenGroomer exception handler.""" - - def __init__(self, message): - super(KittenGroomerError, self).__init__(message) - self.message = message - - -class ImplementationRequired(KittenGroomerError): - """Implementation required error.""" - pass - - class FileBase(object): """ Base object for individual files in the source directory. @@ -336,6 +323,19 @@ class KittenGroomerBase(object): raise ImplementationRequired('Please implement processdir.') +class KittenGroomerError(Exception): + """Base KittenGroomer exception handler.""" + + def __init__(self, message): + super(KittenGroomerError, self).__init__(message) + self.message = message + + +class ImplementationRequired(KittenGroomerError): + """Implementation required error.""" + pass + + def main(kg_implementation, description='Call a KittenGroomer implementation to process files present in the source directory and copy them to the destination directory.'): parser = argparse.ArgumentParser(prog='KittenGroomer', description=description) parser.add_argument('-s', '--source', type=str, help='Source directory')