def __init__(self, login_credentials, targets, destination, operation, direction=UPLOAD, **kwargs): """ """ BuildTarget.__init__(self, **kwargs) self.login_credentials = login_credentials self.direction = direction self.destination = destination self.targets = reduce( lambda a, b: a + b, [glob.glob(x) for x in targets])
def __init__(self, minify=True, embed=True, concat=True, source_dir=None, target_dir=None, build_targets=[], relative_directory="./", external_template_string=None, embed_template_string=None, **kwargs): BuildTarget.__init__(self, **kwargs) self.relative_directory = relative_directory self.input_directory = os.path.abspath(source_dir) self.output_directory = os.path.abspath(target_dir) self.compiler_name = "???" pdebug(self.input_directory) pdebug(self.output_directory) self.build_targets = [os.path.abspath( os.path.join( self.input_directory, target)) for target in build_targets] self.file_watch_targets = self.build_targets if embed_template_string: self.embed_template_string = embed_template_string if external_template_string: self.external_template_string = external_template_string self.minify = minify self.embed = embed self.concat = concat